APIErrorResponse API error response.
type APIErrorResponse struct {
// A list of errors.
Errors []string `json:"errors"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIErrorResponse(errors []string) *APIErrorResponse
NewAPIErrorResponse instantiates a new APIErrorResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIErrorResponseWithDefaults() *APIErrorResponse
NewAPIErrorResponseWithDefaults instantiates a new APIErrorResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIErrorResponse) GetErrors() []string
GetErrors returns the Errors field value.
func (o *APIErrorResponse) GetErrorsOk() (*[]string, bool)
GetErrorsOk returns a tuple with the Errors field value and a boolean to check if the value has been set.
func (o APIErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIErrorResponse) SetErrors(v []string)
SetErrors sets field value.
func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateAttributes Attributes used to create an API Key.
type APIKeyCreateAttributes struct {
// Name of the API key.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateAttributes(name string) *APIKeyCreateAttributes
NewAPIKeyCreateAttributes instantiates a new APIKeyCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateAttributesWithDefaults() *APIKeyCreateAttributes
NewAPIKeyCreateAttributesWithDefaults instantiates a new APIKeyCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *APIKeyCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o APIKeyCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateAttributes) SetName(v string)
SetName sets field value.
func (o *APIKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateData Object used to create an API key.
type APIKeyCreateData struct {
// Attributes used to create an API Key.
Attributes APIKeyCreateAttributes `json:"attributes"`
// API Keys resource type.
Type APIKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateData(attributes APIKeyCreateAttributes, typeVar APIKeysType) *APIKeyCreateData
NewAPIKeyCreateData instantiates a new APIKeyCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateDataWithDefaults() *APIKeyCreateData
NewAPIKeyCreateDataWithDefaults instantiates a new APIKeyCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateData) GetAttributes() APIKeyCreateAttributes
GetAttributes returns the Attributes field value.
func (o *APIKeyCreateData) GetAttributesOk() (*APIKeyCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *APIKeyCreateData) GetType() APIKeysType
GetType returns the Type field value.
func (o *APIKeyCreateData) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o APIKeyCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateData) SetAttributes(v APIKeyCreateAttributes)
SetAttributes sets field value.
func (o *APIKeyCreateData) SetType(v APIKeysType)
SetType sets field value.
func (o *APIKeyCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyCreateRequest Request used to create an API key.
type APIKeyCreateRequest struct {
// Object used to create an API key.
Data APIKeyCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyCreateRequest(data APIKeyCreateData) *APIKeyCreateRequest
NewAPIKeyCreateRequest instantiates a new APIKeyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyCreateRequestWithDefaults() *APIKeyCreateRequest
NewAPIKeyCreateRequestWithDefaults instantiates a new APIKeyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyCreateRequest) GetData() APIKeyCreateData
GetData returns the Data field value.
func (o *APIKeyCreateRequest) GetDataOk() (*APIKeyCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o APIKeyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyCreateRequest) SetData(v APIKeyCreateData)
SetData sets field value.
func (o *APIKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyRelationships Resources related to the API key.
type APIKeyRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
ModifiedBy *RelationshipToUser `json:"modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyRelationships() *APIKeyRelationships
NewAPIKeyRelationships instantiates a new APIKeyRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyRelationshipsWithDefaults() *APIKeyRelationships
NewAPIKeyRelationshipsWithDefaults instantiates a new APIKeyRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *APIKeyRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyRelationships) GetModifiedBy() RelationshipToUser
GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise.
func (o *APIKeyRelationships) GetModifiedByOk() (*RelationshipToUser, bool)
GetModifiedByOk returns a tuple with the ModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *APIKeyRelationships) HasModifiedBy() bool
HasModifiedBy returns a boolean if a field has been set.
func (o APIKeyRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *APIKeyRelationships) SetModifiedBy(v RelationshipToUser)
SetModifiedBy gets a reference to the given RelationshipToUser and assigns it to the ModifiedBy field.
func (o *APIKeyRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyResponse Response for retrieving an API key.
type APIKeyResponse struct {
// Datadog API key.
Data *FullAPIKey `json:"data,omitempty"`
// Array of objects related to the API key.
Included []APIKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyResponse() *APIKeyResponse
NewAPIKeyResponse instantiates a new APIKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyResponseWithDefaults() *APIKeyResponse
NewAPIKeyResponseWithDefaults instantiates a new APIKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyResponse) GetData() FullAPIKey
GetData returns the Data field value if set, zero value otherwise.
func (o *APIKeyResponse) GetDataOk() (*FullAPIKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyResponse) GetIncluded() []APIKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *APIKeyResponse) GetIncludedOk() (*[]APIKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *APIKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o APIKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyResponse) SetData(v FullAPIKey)
SetData gets a reference to the given FullAPIKey and assigns it to the Data field.
func (o *APIKeyResponse) SetIncluded(v []APIKeyResponseIncludedItem)
SetIncluded gets a reference to the given []APIKeyResponseIncludedItem and assigns it to the Included field.
func (o *APIKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyResponseIncludedItem - An object related to an API key.
type APIKeyResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsAPIKeyResponseIncludedItem(v *User) APIKeyResponseIncludedItem
UserAsAPIKeyResponseIncludedItem is a convenience function that returns User wrapped in APIKeyResponseIncludedItem.
func (obj *APIKeyResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj APIKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *APIKeyResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
APIKeyUpdateAttributes Attributes used to update an API Key.
type APIKeyUpdateAttributes struct {
// Name of the API key.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateAttributes(name string) *APIKeyUpdateAttributes
NewAPIKeyUpdateAttributes instantiates a new APIKeyUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateAttributesWithDefaults() *APIKeyUpdateAttributes
NewAPIKeyUpdateAttributesWithDefaults instantiates a new APIKeyUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *APIKeyUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o APIKeyUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *APIKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyUpdateData Object used to update an API key.
type APIKeyUpdateData struct {
// Attributes used to update an API Key.
Attributes APIKeyUpdateAttributes `json:"attributes"`
// ID of the API key.
Id string `json:"id"`
// API Keys resource type.
Type APIKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateData(attributes APIKeyUpdateAttributes, id string, typeVar APIKeysType) *APIKeyUpdateData
NewAPIKeyUpdateData instantiates a new APIKeyUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateDataWithDefaults() *APIKeyUpdateData
NewAPIKeyUpdateDataWithDefaults instantiates a new APIKeyUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateData) GetAttributes() APIKeyUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *APIKeyUpdateData) GetAttributesOk() (*APIKeyUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *APIKeyUpdateData) GetId() string
GetId returns the Id field value.
func (o *APIKeyUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *APIKeyUpdateData) GetType() APIKeysType
GetType returns the Type field value.
func (o *APIKeyUpdateData) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o APIKeyUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateData) SetAttributes(v APIKeyUpdateAttributes)
SetAttributes sets field value.
func (o *APIKeyUpdateData) SetId(v string)
SetId sets field value.
func (o *APIKeyUpdateData) SetType(v APIKeysType)
SetType sets field value.
func (o *APIKeyUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeyUpdateRequest Request used to update an API key.
type APIKeyUpdateRequest struct {
// Object used to update an API key.
Data APIKeyUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeyUpdateRequest(data APIKeyUpdateData) *APIKeyUpdateRequest
NewAPIKeyUpdateRequest instantiates a new APIKeyUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeyUpdateRequestWithDefaults() *APIKeyUpdateRequest
NewAPIKeyUpdateRequestWithDefaults instantiates a new APIKeyUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeyUpdateRequest) GetData() APIKeyUpdateData
GetData returns the Data field value.
func (o *APIKeyUpdateRequest) GetDataOk() (*APIKeyUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o APIKeyUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeyUpdateRequest) SetData(v APIKeyUpdateData)
SetData sets field value.
func (o *APIKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeysResponse Response for a list of API keys.
type APIKeysResponse struct {
// Array of API keys.
Data []PartialAPIKey `json:"data,omitempty"`
// Array of objects related to the API key.
Included []APIKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAPIKeysResponse() *APIKeysResponse
NewAPIKeysResponse instantiates a new APIKeysResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAPIKeysResponseWithDefaults() *APIKeysResponse
NewAPIKeysResponseWithDefaults instantiates a new APIKeysResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *APIKeysResponse) GetData() []PartialAPIKey
GetData returns the Data field value if set, zero value otherwise.
func (o *APIKeysResponse) GetDataOk() (*[]PartialAPIKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeysResponse) GetIncluded() []APIKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *APIKeysResponse) GetIncludedOk() (*[]APIKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *APIKeysResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *APIKeysResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o APIKeysResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *APIKeysResponse) SetData(v []PartialAPIKey)
SetData gets a reference to the given []PartialAPIKey and assigns it to the Data field.
func (o *APIKeysResponse) SetIncluded(v []APIKeyResponseIncludedItem)
SetIncluded gets a reference to the given []APIKeyResponseIncludedItem and assigns it to the Included field.
func (o *APIKeysResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
APIKeysSort Sorting options
type APIKeysSort string
List of APIKeysSort.
const (
APIKEYSSORT_CREATED_AT_ASCENDING APIKeysSort = "created_at"
APIKEYSSORT_CREATED_AT_DESCENDING APIKeysSort = "-created_at"
APIKEYSSORT_LAST4_ASCENDING APIKeysSort = "last4"
APIKEYSSORT_LAST4_DESCENDING APIKeysSort = "-last4"
APIKEYSSORT_MODIFIED_AT_ASCENDING APIKeysSort = "modified_at"
APIKEYSSORT_MODIFIED_AT_DESCENDING APIKeysSort = "-modified_at"
APIKEYSSORT_NAME_ASCENDING APIKeysSort = "name"
APIKEYSSORT_NAME_DESCENDING APIKeysSort = "-name"
)
func NewAPIKeysSortFromValue(v string) (*APIKeysSort, error)
NewAPIKeysSortFromValue returns a pointer to a valid APIKeysSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *APIKeysSort) GetAllowedValues() []APIKeysSort
GetAllowedValues reeturns the list of possible values.
func (v APIKeysSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v APIKeysSort) Ptr() *APIKeysSort
Ptr returns reference to APIKeysSort value.
func (v *APIKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
APIKeysType API Keys resource type.
type APIKeysType string
List of APIKeysType.
const (
APIKEYSTYPE_API_KEYS APIKeysType = "api_keys"
)
func NewAPIKeysTypeFromValue(v string) (*APIKeysType, error)
NewAPIKeysTypeFromValue returns a pointer to a valid APIKeysType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *APIKeysType) GetAllowedValues() []APIKeysType
GetAllowedValues reeturns the list of possible values.
func (v APIKeysType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v APIKeysType) Ptr() *APIKeysType
Ptr returns reference to APIKeysType value.
func (v *APIKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ApplicationKeyCreateAttributes Attributes used to create an application Key.
type ApplicationKeyCreateAttributes struct {
// Name of the application key.
Name string `json:"name"`
// Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys.
Scopes []string `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateAttributes(name string) *ApplicationKeyCreateAttributes
NewApplicationKeyCreateAttributes instantiates a new ApplicationKeyCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateAttributesWithDefaults() *ApplicationKeyCreateAttributes
NewApplicationKeyCreateAttributesWithDefaults instantiates a new ApplicationKeyCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *ApplicationKeyCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ApplicationKeyCreateAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ApplicationKeyCreateAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *ApplicationKeyCreateAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o ApplicationKeyCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateAttributes) SetName(v string)
SetName sets field value.
func (o *ApplicationKeyCreateAttributes) SetScopes(v []string)
SetScopes gets a reference to the given []string and assigns it to the Scopes field.
func (o *ApplicationKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyCreateData Object used to create an application key.
type ApplicationKeyCreateData struct {
// Attributes used to create an application Key.
Attributes ApplicationKeyCreateAttributes `json:"attributes"`
// Application Keys resource type.
Type ApplicationKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateData(attributes ApplicationKeyCreateAttributes, typeVar ApplicationKeysType) *ApplicationKeyCreateData
NewApplicationKeyCreateData instantiates a new ApplicationKeyCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateDataWithDefaults() *ApplicationKeyCreateData
NewApplicationKeyCreateDataWithDefaults instantiates a new ApplicationKeyCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateData) GetAttributes() ApplicationKeyCreateAttributes
GetAttributes returns the Attributes field value.
func (o *ApplicationKeyCreateData) GetAttributesOk() (*ApplicationKeyCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ApplicationKeyCreateData) GetType() ApplicationKeysType
GetType returns the Type field value.
func (o *ApplicationKeyCreateData) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ApplicationKeyCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateData) SetAttributes(v ApplicationKeyCreateAttributes)
SetAttributes sets field value.
func (o *ApplicationKeyCreateData) SetType(v ApplicationKeysType)
SetType sets field value.
func (o *ApplicationKeyCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyCreateRequest Request used to create an application key.
type ApplicationKeyCreateRequest struct {
// Object used to create an application key.
Data ApplicationKeyCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyCreateRequest(data ApplicationKeyCreateData) *ApplicationKeyCreateRequest
NewApplicationKeyCreateRequest instantiates a new ApplicationKeyCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyCreateRequestWithDefaults() *ApplicationKeyCreateRequest
NewApplicationKeyCreateRequestWithDefaults instantiates a new ApplicationKeyCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyCreateRequest) GetData() ApplicationKeyCreateData
GetData returns the Data field value.
func (o *ApplicationKeyCreateRequest) GetDataOk() (*ApplicationKeyCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ApplicationKeyCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyCreateRequest) SetData(v ApplicationKeyCreateData)
SetData sets field value.
func (o *ApplicationKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyRelationships Resources related to the application key.
type ApplicationKeyRelationships struct {
// Relationship to user.
OwnedBy *RelationshipToUser `json:"owned_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyRelationships() *ApplicationKeyRelationships
NewApplicationKeyRelationships instantiates a new ApplicationKeyRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyRelationshipsWithDefaults() *ApplicationKeyRelationships
NewApplicationKeyRelationshipsWithDefaults instantiates a new ApplicationKeyRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyRelationships) GetOwnedBy() RelationshipToUser
GetOwnedBy returns the OwnedBy field value if set, zero value otherwise.
func (o *ApplicationKeyRelationships) GetOwnedByOk() (*RelationshipToUser, bool)
GetOwnedByOk returns a tuple with the OwnedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyRelationships) HasOwnedBy() bool
HasOwnedBy returns a boolean if a field has been set.
func (o ApplicationKeyRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyRelationships) SetOwnedBy(v RelationshipToUser)
SetOwnedBy gets a reference to the given RelationshipToUser and assigns it to the OwnedBy field.
func (o *ApplicationKeyRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyResponse Response for retrieving an application key.
type ApplicationKeyResponse struct {
// Datadog application key.
Data *FullApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyResponse() *ApplicationKeyResponse
NewApplicationKeyResponse instantiates a new ApplicationKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyResponseWithDefaults() *ApplicationKeyResponse
NewApplicationKeyResponseWithDefaults instantiates a new ApplicationKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyResponse) GetData() FullApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *ApplicationKeyResponse) GetDataOk() (*FullApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *ApplicationKeyResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ApplicationKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o ApplicationKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyResponse) SetData(v FullApplicationKey)
SetData gets a reference to the given FullApplicationKey and assigns it to the Data field.
func (o *ApplicationKeyResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *ApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyResponseIncludedItem - An object related to an application key.
type ApplicationKeyResponseIncludedItem struct {
User *User
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RoleAsApplicationKeyResponseIncludedItem(v *Role) ApplicationKeyResponseIncludedItem
RoleAsApplicationKeyResponseIncludedItem is a convenience function that returns Role wrapped in ApplicationKeyResponseIncludedItem.
func UserAsApplicationKeyResponseIncludedItem(v *User) ApplicationKeyResponseIncludedItem
UserAsApplicationKeyResponseIncludedItem is a convenience function that returns User wrapped in ApplicationKeyResponseIncludedItem.
func (obj *ApplicationKeyResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ApplicationKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ApplicationKeyResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ApplicationKeyUpdateAttributes Attributes used to update an application Key.
type ApplicationKeyUpdateAttributes struct {
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys.
Scopes []string `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateAttributes() *ApplicationKeyUpdateAttributes
NewApplicationKeyUpdateAttributes instantiates a new ApplicationKeyUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateAttributesWithDefaults() *ApplicationKeyUpdateAttributes
NewApplicationKeyUpdateAttributesWithDefaults instantiates a new ApplicationKeyUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ApplicationKeyUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ApplicationKeyUpdateAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *ApplicationKeyUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ApplicationKeyUpdateAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o ApplicationKeyUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ApplicationKeyUpdateAttributes) SetScopes(v []string)
SetScopes gets a reference to the given []string and assigns it to the Scopes field.
func (o *ApplicationKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyUpdateData Object used to update an application key.
type ApplicationKeyUpdateData struct {
// Attributes used to update an application Key.
Attributes ApplicationKeyUpdateAttributes `json:"attributes"`
// ID of the application key.
Id string `json:"id"`
// Application Keys resource type.
Type ApplicationKeysType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateData(attributes ApplicationKeyUpdateAttributes, id string, typeVar ApplicationKeysType) *ApplicationKeyUpdateData
NewApplicationKeyUpdateData instantiates a new ApplicationKeyUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateDataWithDefaults() *ApplicationKeyUpdateData
NewApplicationKeyUpdateDataWithDefaults instantiates a new ApplicationKeyUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateData) GetAttributes() ApplicationKeyUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *ApplicationKeyUpdateData) GetAttributesOk() (*ApplicationKeyUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateData) GetId() string
GetId returns the Id field value.
func (o *ApplicationKeyUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ApplicationKeyUpdateData) GetType() ApplicationKeysType
GetType returns the Type field value.
func (o *ApplicationKeyUpdateData) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ApplicationKeyUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateData) SetAttributes(v ApplicationKeyUpdateAttributes)
SetAttributes sets field value.
func (o *ApplicationKeyUpdateData) SetId(v string)
SetId sets field value.
func (o *ApplicationKeyUpdateData) SetType(v ApplicationKeysType)
SetType sets field value.
func (o *ApplicationKeyUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeyUpdateRequest Request used to update an application key.
type ApplicationKeyUpdateRequest struct {
// Object used to update an application key.
Data ApplicationKeyUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewApplicationKeyUpdateRequest(data ApplicationKeyUpdateData) *ApplicationKeyUpdateRequest
NewApplicationKeyUpdateRequest instantiates a new ApplicationKeyUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewApplicationKeyUpdateRequestWithDefaults() *ApplicationKeyUpdateRequest
NewApplicationKeyUpdateRequestWithDefaults instantiates a new ApplicationKeyUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ApplicationKeyUpdateRequest) GetData() ApplicationKeyUpdateData
GetData returns the Data field value.
func (o *ApplicationKeyUpdateRequest) GetDataOk() (*ApplicationKeyUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ApplicationKeyUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ApplicationKeyUpdateRequest) SetData(v ApplicationKeyUpdateData)
SetData sets field value.
func (o *ApplicationKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ApplicationKeysSort Sorting options
type ApplicationKeysSort string
List of ApplicationKeysSort.
const (
APPLICATIONKEYSSORT_CREATED_AT_ASCENDING ApplicationKeysSort = "created_at"
APPLICATIONKEYSSORT_CREATED_AT_DESCENDING ApplicationKeysSort = "-created_at"
APPLICATIONKEYSSORT_LAST4_ASCENDING ApplicationKeysSort = "last4"
APPLICATIONKEYSSORT_LAST4_DESCENDING ApplicationKeysSort = "-last4"
APPLICATIONKEYSSORT_NAME_ASCENDING ApplicationKeysSort = "name"
APPLICATIONKEYSSORT_NAME_DESCENDING ApplicationKeysSort = "-name"
)
func NewApplicationKeysSortFromValue(v string) (*ApplicationKeysSort, error)
NewApplicationKeysSortFromValue returns a pointer to a valid ApplicationKeysSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ApplicationKeysSort) GetAllowedValues() []ApplicationKeysSort
GetAllowedValues reeturns the list of possible values.
func (v ApplicationKeysSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ApplicationKeysSort) Ptr() *ApplicationKeysSort
Ptr returns reference to ApplicationKeysSort value.
func (v *ApplicationKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ApplicationKeysType Application Keys resource type.
type ApplicationKeysType string
List of ApplicationKeysType.
const (
APPLICATIONKEYSTYPE_APPLICATION_KEYS ApplicationKeysType = "application_keys"
)
func NewApplicationKeysTypeFromValue(v string) (*ApplicationKeysType, error)
NewApplicationKeysTypeFromValue returns a pointer to a valid ApplicationKeysType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ApplicationKeysType) GetAllowedValues() []ApplicationKeysType
GetAllowedValues reeturns the list of possible values.
func (v ApplicationKeysType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ApplicationKeysType) Ptr() *ApplicationKeysType
Ptr returns reference to ApplicationKeysType value.
func (v *ApplicationKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditApi service type
type AuditApi datadog.Service
func NewAuditApi(client *datadog.APIClient) *AuditApi
NewAuditApi Returns NewAuditApi.
func (a *AuditApi) ListAuditLogs(ctx _context.Context, o ...ListAuditLogsOptionalParameters) (AuditLogsEventsResponse, *_nethttp.Response, error)
ListAuditLogs Get a list of Audit Logs events. List endpoint returns events that match a Audit Logs search query. [Results are paginated]1.
Use this endpoint to see your latest Audit Logs events.
func (a *AuditApi) ListAuditLogsWithPagination(ctx _context.Context, o ...ListAuditLogsOptionalParameters) (<-chan AuditLogsEvent, func(), error)
ListAuditLogsWithPagination provides a paginated version of ListAuditLogs returning a channel with all items.
func (a *AuditApi) SearchAuditLogs(ctx _context.Context, o ...SearchAuditLogsOptionalParameters) (AuditLogsEventsResponse, *_nethttp.Response, error)
SearchAuditLogs Search Audit Logs events. List endpoint returns Audit Logs events that match an Audit search query. [Results are paginated]1.
Use this endpoint to build complex Audit Logs events filtering and search.
func (a *AuditApi) SearchAuditLogsWithPagination(ctx _context.Context, o ...SearchAuditLogsOptionalParameters) (<-chan AuditLogsEvent, func(), error)
SearchAuditLogsWithPagination provides a paginated version of SearchAuditLogs returning a channel with all items.
AuditLogsEvent Object description of an Audit Logs event after it is processed and stored by Datadog.
type AuditLogsEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *AuditLogsEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *AuditLogsEventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEvent() *AuditLogsEvent
NewAuditLogsEvent instantiates a new AuditLogsEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventWithDefaults() *AuditLogsEvent
NewAuditLogsEventWithDefaults instantiates a new AuditLogsEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEvent) GetAttributes() AuditLogsEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetAttributesOk() (*AuditLogsEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) GetType() AuditLogsEventType
GetType returns the Type field value if set, zero value otherwise.
func (o *AuditLogsEvent) GetTypeOk() (*AuditLogsEventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuditLogsEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *AuditLogsEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o AuditLogsEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEvent) SetAttributes(v AuditLogsEventAttributes)
SetAttributes gets a reference to the given AuditLogsEventAttributes and assigns it to the Attributes field.
func (o *AuditLogsEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *AuditLogsEvent) SetType(v AuditLogsEventType)
SetType gets a reference to the given AuditLogsEventType and assigns it to the Type field.
func (o *AuditLogsEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsEventAttributes JSON object containing all event attributes and their associated values.
type AuditLogsEventAttributes struct {
// JSON object of attributes from Audit Logs events.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// Name of the application or service generating Audit Logs events.
// This name is used to correlate Audit Logs to APM, so make sure you specify the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your event.
Tags []string `json:"tags,omitempty"`
// Timestamp of your event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEventAttributes() *AuditLogsEventAttributes
NewAuditLogsEventAttributes instantiates a new AuditLogsEventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventAttributesWithDefaults() *AuditLogsEventAttributes
NewAuditLogsEventAttributesWithDefaults instantiates a new AuditLogsEventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEventAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *AuditLogsEventAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *AuditLogsEventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o AuditLogsEventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEventAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *AuditLogsEventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *AuditLogsEventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *AuditLogsEventAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *AuditLogsEventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsEventType Type of the event.
type AuditLogsEventType string
List of AuditLogsEventType.
const (
AUDITLOGSEVENTTYPE_Audit AuditLogsEventType = "audit"
)
func NewAuditLogsEventTypeFromValue(v string) (*AuditLogsEventType, error)
NewAuditLogsEventTypeFromValue returns a pointer to a valid AuditLogsEventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsEventType) GetAllowedValues() []AuditLogsEventType
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsEventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsEventType) Ptr() *AuditLogsEventType
Ptr returns reference to AuditLogsEventType value.
func (v *AuditLogsEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsEventsResponse Response object with all events matching the request and pagination information.
type AuditLogsEventsResponse struct {
// Array of events matching the request.
Data []AuditLogsEvent `json:"data,omitempty"`
// Links attributes.
Links *AuditLogsResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *AuditLogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsEventsResponse() *AuditLogsEventsResponse
NewAuditLogsEventsResponse instantiates a new AuditLogsEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsEventsResponseWithDefaults() *AuditLogsEventsResponse
NewAuditLogsEventsResponseWithDefaults instantiates a new AuditLogsEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsEventsResponse) GetData() []AuditLogsEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetDataOk() (*[]AuditLogsEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) GetLinks() AuditLogsResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetLinksOk() (*AuditLogsResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) GetMeta() AuditLogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *AuditLogsEventsResponse) GetMetaOk() (*AuditLogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuditLogsEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *AuditLogsEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o AuditLogsEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsEventsResponse) SetData(v []AuditLogsEvent)
SetData gets a reference to the given []AuditLogsEvent and assigns it to the Data field.
func (o *AuditLogsEventsResponse) SetLinks(v AuditLogsResponseLinks)
SetLinks gets a reference to the given AuditLogsResponseLinks and assigns it to the Links field.
func (o *AuditLogsEventsResponse) SetMeta(v AuditLogsResponseMetadata)
SetMeta gets a reference to the given AuditLogsResponseMetadata and assigns it to the Meta field.
func (o *AuditLogsEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryFilter Search and filter query settings.
type AuditLogsQueryFilter struct {
// Minimum time for the requested events. Supports date, math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// Search query following the Audit Logs search syntax.
Query *string `json:"query,omitempty"`
// Maximum time for the requested events. Supports date, math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryFilter() *AuditLogsQueryFilter
NewAuditLogsQueryFilter instantiates a new AuditLogsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryFilterWithDefaults() *AuditLogsQueryFilter
NewAuditLogsQueryFilterWithDefaults instantiates a new AuditLogsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *AuditLogsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *AuditLogsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *AuditLogsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o AuditLogsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *AuditLogsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *AuditLogsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *AuditLogsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryOptions Global query options that are used during the query. Note: Specify either timezone or time offset, not both. Otherwise, the query fails.
type AuditLogsQueryOptions struct {
// Time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"time_offset,omitempty"`
// Timezone code. Can be specified as an offset, for example: "UTC+03:00".
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryOptions() *AuditLogsQueryOptions
NewAuditLogsQueryOptions instantiates a new AuditLogsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryOptionsWithDefaults() *AuditLogsQueryOptions
NewAuditLogsQueryOptionsWithDefaults instantiates a new AuditLogsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *AuditLogsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *AuditLogsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *AuditLogsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o AuditLogsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *AuditLogsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *AuditLogsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsQueryPageOptions Paging attributes for listing events.
type AuditLogsQueryPageOptions struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of events in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsQueryPageOptions() *AuditLogsQueryPageOptions
NewAuditLogsQueryPageOptions instantiates a new AuditLogsQueryPageOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsQueryPageOptionsWithDefaults() *AuditLogsQueryPageOptions
NewAuditLogsQueryPageOptionsWithDefaults instantiates a new AuditLogsQueryPageOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsQueryPageOptions) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *AuditLogsQueryPageOptions) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryPageOptions) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *AuditLogsQueryPageOptions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsQueryPageOptions) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *AuditLogsQueryPageOptions) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o AuditLogsQueryPageOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsQueryPageOptions) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *AuditLogsQueryPageOptions) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *AuditLogsQueryPageOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseLinks Links attributes.
type AuditLogsResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponseLinks() *AuditLogsResponseLinks
NewAuditLogsResponseLinks instantiates a new AuditLogsResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponseLinksWithDefaults() *AuditLogsResponseLinks
NewAuditLogsResponseLinksWithDefaults instantiates a new AuditLogsResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *AuditLogsResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o AuditLogsResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *AuditLogsResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseMetadata The metadata associated with a request.
type AuditLogsResponseMetadata struct {
// Time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *AuditLogsResponsePage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *AuditLogsResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []AuditLogsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponseMetadata() *AuditLogsResponseMetadata
NewAuditLogsResponseMetadata instantiates a new AuditLogsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponseMetadataWithDefaults() *AuditLogsResponseMetadata
NewAuditLogsResponseMetadataWithDefaults instantiates a new AuditLogsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetPage() AuditLogsResponsePage
GetPage returns the Page field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetPageOk() (*AuditLogsResponsePage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetStatus() AuditLogsResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetStatusOk() (*AuditLogsResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) GetWarnings() []AuditLogsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *AuditLogsResponseMetadata) GetWarningsOk() (*[]AuditLogsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *AuditLogsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o AuditLogsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *AuditLogsResponseMetadata) SetPage(v AuditLogsResponsePage)
SetPage gets a reference to the given AuditLogsResponsePage and assigns it to the Page field.
func (o *AuditLogsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *AuditLogsResponseMetadata) SetStatus(v AuditLogsResponseStatus)
SetStatus gets a reference to the given AuditLogsResponseStatus and assigns it to the Status field.
func (o *AuditLogsResponseMetadata) SetWarnings(v []AuditLogsWarning)
SetWarnings gets a reference to the given []AuditLogsWarning and assigns it to the Warnings field.
func (o *AuditLogsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponsePage Paging attributes.
type AuditLogsResponsePage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsResponsePage() *AuditLogsResponsePage
NewAuditLogsResponsePage instantiates a new AuditLogsResponsePage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsResponsePageWithDefaults() *AuditLogsResponsePage
NewAuditLogsResponsePageWithDefaults instantiates a new AuditLogsResponsePage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsResponsePage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *AuditLogsResponsePage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsResponsePage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o AuditLogsResponsePage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsResponsePage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *AuditLogsResponsePage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsResponseStatus The status of the response.
type AuditLogsResponseStatus string
List of AuditLogsResponseStatus.
const (
AUDITLOGSRESPONSESTATUS_DONE AuditLogsResponseStatus = "done"
AUDITLOGSRESPONSESTATUS_TIMEOUT AuditLogsResponseStatus = "timeout"
)
func NewAuditLogsResponseStatusFromValue(v string) (*AuditLogsResponseStatus, error)
NewAuditLogsResponseStatusFromValue returns a pointer to a valid AuditLogsResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsResponseStatus) GetAllowedValues() []AuditLogsResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsResponseStatus) Ptr() *AuditLogsResponseStatus
Ptr returns reference to AuditLogsResponseStatus value.
func (v *AuditLogsResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsSearchEventsRequest The request for a Audit Logs events list.
type AuditLogsSearchEventsRequest struct {
// Search and filter query settings.
Filter *AuditLogsQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: Specify either timezone or time offset, not both. Otherwise, the query fails.
Options *AuditLogsQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *AuditLogsQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *AuditLogsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsSearchEventsRequest() *AuditLogsSearchEventsRequest
NewAuditLogsSearchEventsRequest instantiates a new AuditLogsSearchEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsSearchEventsRequestWithDefaults() *AuditLogsSearchEventsRequest
NewAuditLogsSearchEventsRequestWithDefaults instantiates a new AuditLogsSearchEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsSearchEventsRequest) GetFilter() AuditLogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetFilterOk() (*AuditLogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetOptions() AuditLogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetOptionsOk() (*AuditLogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetPage() AuditLogsQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetPageOk() (*AuditLogsQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) GetSort() AuditLogsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *AuditLogsSearchEventsRequest) GetSortOk() (*AuditLogsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsSearchEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *AuditLogsSearchEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o AuditLogsSearchEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsSearchEventsRequest) SetFilter(v AuditLogsQueryFilter)
SetFilter gets a reference to the given AuditLogsQueryFilter and assigns it to the Filter field.
func (o *AuditLogsSearchEventsRequest) SetOptions(v AuditLogsQueryOptions)
SetOptions gets a reference to the given AuditLogsQueryOptions and assigns it to the Options field.
func (o *AuditLogsSearchEventsRequest) SetPage(v AuditLogsQueryPageOptions)
SetPage gets a reference to the given AuditLogsQueryPageOptions and assigns it to the Page field.
func (o *AuditLogsSearchEventsRequest) SetSort(v AuditLogsSort)
SetSort gets a reference to the given AuditLogsSort and assigns it to the Sort field.
func (o *AuditLogsSearchEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuditLogsSort Sort parameters when querying events.
type AuditLogsSort string
List of AuditLogsSort.
const (
AUDITLOGSSORT_TIMESTAMP_ASCENDING AuditLogsSort = "timestamp"
AUDITLOGSSORT_TIMESTAMP_DESCENDING AuditLogsSort = "-timestamp"
)
func NewAuditLogsSortFromValue(v string) (*AuditLogsSort, error)
NewAuditLogsSortFromValue returns a pointer to a valid AuditLogsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuditLogsSort) GetAllowedValues() []AuditLogsSort
GetAllowedValues reeturns the list of possible values.
func (v AuditLogsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuditLogsSort) Ptr() *AuditLogsSort
Ptr returns reference to AuditLogsSort value.
func (v *AuditLogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuditLogsWarning Warning message indicating something that went wrong with the query.
type AuditLogsWarning struct {
// Unique code for this type of warning.
Code *string `json:"code,omitempty"`
// Detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// Short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuditLogsWarning() *AuditLogsWarning
NewAuditLogsWarning instantiates a new AuditLogsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuditLogsWarningWithDefaults() *AuditLogsWarning
NewAuditLogsWarningWithDefaults instantiates a new AuditLogsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuditLogsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *AuditLogsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuditLogsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *AuditLogsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *AuditLogsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o AuditLogsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuditLogsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *AuditLogsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *AuditLogsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *AuditLogsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMapping The AuthN Mapping object returned by API.
type AuthNMapping struct {
// Attributes of AuthN Mapping.
Attributes *AuthNMappingAttributes `json:"attributes,omitempty"`
// ID of the AuthN Mapping.
Id string `json:"id"`
// All relationships associated with AuthN Mapping.
Relationships *AuthNMappingRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMapping(id string, typeVar AuthNMappingsType) *AuthNMapping
NewAuthNMapping instantiates a new AuthNMapping object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingWithDefaults() *AuthNMapping
NewAuthNMappingWithDefaults instantiates a new AuthNMapping object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMapping) GetAttributes() AuthNMappingAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMapping) GetAttributesOk() (*AuthNMappingAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMapping) GetId() string
GetId returns the Id field value.
func (o *AuthNMapping) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AuthNMapping) GetRelationships() AuthNMappingRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMapping) GetRelationshipsOk() (*AuthNMappingRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMapping) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMapping) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMapping) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMapping) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMapping) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMapping) SetAttributes(v AuthNMappingAttributes)
SetAttributes gets a reference to the given AuthNMappingAttributes and assigns it to the Attributes field.
func (o *AuthNMapping) SetId(v string)
SetId sets field value.
func (o *AuthNMapping) SetRelationships(v AuthNMappingRelationships)
SetRelationships gets a reference to the given AuthNMappingRelationships and assigns it to the Relationships field.
func (o *AuthNMapping) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMapping) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingAttributes Attributes of AuthN Mapping.
type AuthNMappingAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// Creation time of the AuthN Mapping.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last AuthN Mapping modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// The ID of the SAML assertion attribute.
SamlAssertionAttributeId *string `json:"saml_assertion_attribute_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingAttributes() *AuthNMappingAttributes
NewAuthNMappingAttributes instantiates a new AuthNMappingAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingAttributesWithDefaults() *AuthNMappingAttributes
NewAuthNMappingAttributesWithDefaults instantiates a new AuthNMappingAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) GetSamlAssertionAttributeId() string
GetSamlAssertionAttributeId returns the SamlAssertionAttributeId field value if set, zero value otherwise.
func (o *AuthNMappingAttributes) GetSamlAssertionAttributeIdOk() (*string, bool)
GetSamlAssertionAttributeIdOk returns a tuple with the SamlAssertionAttributeId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *AuthNMappingAttributes) HasSamlAssertionAttributeId() bool
HasSamlAssertionAttributeId returns a boolean if a field has been set.
func (o AuthNMappingAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *AuthNMappingAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *AuthNMappingAttributes) SetSamlAssertionAttributeId(v string)
SetSamlAssertionAttributeId gets a reference to the given string and assigns it to the SamlAssertionAttributeId field.
func (o *AuthNMappingAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateAttributes Key/Value pair of attributes used for create request.
type AuthNMappingCreateAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateAttributes() *AuthNMappingCreateAttributes
NewAuthNMappingCreateAttributes instantiates a new AuthNMappingCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateAttributesWithDefaults() *AuthNMappingCreateAttributes
NewAuthNMappingCreateAttributesWithDefaults instantiates a new AuthNMappingCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingCreateAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingCreateAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingCreateAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o AuthNMappingCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingCreateAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateData Data for creating an AuthN Mapping.
type AuthNMappingCreateData struct {
// Key/Value pair of attributes used for create request.
Attributes *AuthNMappingCreateAttributes `json:"attributes,omitempty"`
// Relationship of AuthN Mapping create object to Role.
Relationships *AuthNMappingCreateRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateData(typeVar AuthNMappingsType) *AuthNMappingCreateData
NewAuthNMappingCreateData instantiates a new AuthNMappingCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateDataWithDefaults() *AuthNMappingCreateData
NewAuthNMappingCreateDataWithDefaults instantiates a new AuthNMappingCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateData) GetAttributes() AuthNMappingCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMappingCreateData) GetAttributesOk() (*AuthNMappingCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) GetRelationships() AuthNMappingCreateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMappingCreateData) GetRelationshipsOk() (*AuthNMappingCreateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMappingCreateData) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMappingCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMappingCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMappingCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateData) SetAttributes(v AuthNMappingCreateAttributes)
SetAttributes gets a reference to the given AuthNMappingCreateAttributes and assigns it to the Attributes field.
func (o *AuthNMappingCreateData) SetRelationships(v AuthNMappingCreateRelationships)
SetRelationships gets a reference to the given AuthNMappingCreateRelationships and assigns it to the Relationships field.
func (o *AuthNMappingCreateData) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMappingCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateRelationships Relationship of AuthN Mapping create object to Role.
type AuthNMappingCreateRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateRelationships() *AuthNMappingCreateRelationships
NewAuthNMappingCreateRelationships instantiates a new AuthNMappingCreateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateRelationshipsWithDefaults() *AuthNMappingCreateRelationships
NewAuthNMappingCreateRelationshipsWithDefaults instantiates a new AuthNMappingCreateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingCreateRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingCreateRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o AuthNMappingCreateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingCreateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingCreateRequest Request for creating an AuthN Mapping.
type AuthNMappingCreateRequest struct {
// Data for creating an AuthN Mapping.
Data AuthNMappingCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingCreateRequest(data AuthNMappingCreateData) *AuthNMappingCreateRequest
NewAuthNMappingCreateRequest instantiates a new AuthNMappingCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingCreateRequestWithDefaults() *AuthNMappingCreateRequest
NewAuthNMappingCreateRequestWithDefaults instantiates a new AuthNMappingCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingCreateRequest) GetData() AuthNMappingCreateData
GetData returns the Data field value.
func (o *AuthNMappingCreateRequest) GetDataOk() (*AuthNMappingCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o AuthNMappingCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingCreateRequest) SetData(v AuthNMappingCreateData)
SetData sets field value.
func (o *AuthNMappingCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingIncluded - Included data in the AuthN Mapping response.
type AuthNMappingIncluded struct {
SAMLAssertionAttribute *SAMLAssertionAttribute
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RoleAsAuthNMappingIncluded(v *Role) AuthNMappingIncluded
RoleAsAuthNMappingIncluded is a convenience function that returns Role wrapped in AuthNMappingIncluded.
func SAMLAssertionAttributeAsAuthNMappingIncluded(v *SAMLAssertionAttribute) AuthNMappingIncluded
SAMLAssertionAttributeAsAuthNMappingIncluded is a convenience function that returns SAMLAssertionAttribute wrapped in AuthNMappingIncluded.
func (obj *AuthNMappingIncluded) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj AuthNMappingIncluded) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *AuthNMappingIncluded) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
AuthNMappingRelationships All relationships associated with AuthN Mapping.
type AuthNMappingRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// AuthN Mapping relationship to SAML Assertion Attribute.
SamlAssertionAttribute *RelationshipToSAMLAssertionAttribute `json:"saml_assertion_attribute,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingRelationships() *AuthNMappingRelationships
NewAuthNMappingRelationships instantiates a new AuthNMappingRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingRelationshipsWithDefaults() *AuthNMappingRelationships
NewAuthNMappingRelationshipsWithDefaults instantiates a new AuthNMappingRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingRelationships) GetSamlAssertionAttribute() RelationshipToSAMLAssertionAttribute
GetSamlAssertionAttribute returns the SamlAssertionAttribute field value if set, zero value otherwise.
func (o *AuthNMappingRelationships) GetSamlAssertionAttributeOk() (*RelationshipToSAMLAssertionAttribute, bool)
GetSamlAssertionAttributeOk returns a tuple with the SamlAssertionAttribute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o *AuthNMappingRelationships) HasSamlAssertionAttribute() bool
HasSamlAssertionAttribute returns a boolean if a field has been set.
func (o AuthNMappingRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingRelationships) SetSamlAssertionAttribute(v RelationshipToSAMLAssertionAttribute)
SetSamlAssertionAttribute gets a reference to the given RelationshipToSAMLAssertionAttribute and assigns it to the SamlAssertionAttribute field.
func (o *AuthNMappingRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingResponse AuthN Mapping response from the API.
type AuthNMappingResponse struct {
// The AuthN Mapping object returned by API.
Data *AuthNMapping `json:"data,omitempty"`
// Included data in the AuthN Mapping response.
Included []AuthNMappingIncluded `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingResponse() *AuthNMappingResponse
NewAuthNMappingResponse instantiates a new AuthNMappingResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingResponseWithDefaults() *AuthNMappingResponse
NewAuthNMappingResponseWithDefaults instantiates a new AuthNMappingResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingResponse) GetData() AuthNMapping
GetData returns the Data field value if set, zero value otherwise.
func (o *AuthNMappingResponse) GetDataOk() (*AuthNMapping, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingResponse) GetIncluded() []AuthNMappingIncluded
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *AuthNMappingResponse) GetIncludedOk() (*[]AuthNMappingIncluded, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuthNMappingResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o AuthNMappingResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingResponse) SetData(v AuthNMapping)
SetData gets a reference to the given AuthNMapping and assigns it to the Data field.
func (o *AuthNMappingResponse) SetIncluded(v []AuthNMappingIncluded)
SetIncluded gets a reference to the given []AuthNMappingIncluded and assigns it to the Included field.
func (o *AuthNMappingResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateAttributes Key/Value pair of attributes used for update request.
type AuthNMappingUpdateAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateAttributes() *AuthNMappingUpdateAttributes
NewAuthNMappingUpdateAttributes instantiates a new AuthNMappingUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateAttributesWithDefaults() *AuthNMappingUpdateAttributes
NewAuthNMappingUpdateAttributesWithDefaults instantiates a new AuthNMappingUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *AuthNMappingUpdateAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *AuthNMappingUpdateAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *AuthNMappingUpdateAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o AuthNMappingUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *AuthNMappingUpdateAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *AuthNMappingUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateData Data for updating an AuthN Mapping.
type AuthNMappingUpdateData struct {
// Key/Value pair of attributes used for update request.
Attributes *AuthNMappingUpdateAttributes `json:"attributes,omitempty"`
// ID of the AuthN Mapping.
Id string `json:"id"`
// Relationship of AuthN Mapping update object to Role.
Relationships *AuthNMappingUpdateRelationships `json:"relationships,omitempty"`
// AuthN Mappings resource type.
Type AuthNMappingsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateData(id string, typeVar AuthNMappingsType) *AuthNMappingUpdateData
NewAuthNMappingUpdateData instantiates a new AuthNMappingUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateDataWithDefaults() *AuthNMappingUpdateData
NewAuthNMappingUpdateDataWithDefaults instantiates a new AuthNMappingUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateData) GetAttributes() AuthNMappingUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AuthNMappingUpdateData) GetAttributesOk() (*AuthNMappingUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetId() string
GetId returns the Id field value.
func (o *AuthNMappingUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetRelationships() AuthNMappingUpdateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *AuthNMappingUpdateData) GetRelationshipsOk() (*AuthNMappingUpdateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) GetType() AuthNMappingsType
GetType returns the Type field value.
func (o *AuthNMappingUpdateData) GetTypeOk() (*AuthNMappingsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *AuthNMappingUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o AuthNMappingUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateData) SetAttributes(v AuthNMappingUpdateAttributes)
SetAttributes gets a reference to the given AuthNMappingUpdateAttributes and assigns it to the Attributes field.
func (o *AuthNMappingUpdateData) SetId(v string)
SetId sets field value.
func (o *AuthNMappingUpdateData) SetRelationships(v AuthNMappingUpdateRelationships)
SetRelationships gets a reference to the given AuthNMappingUpdateRelationships and assigns it to the Relationships field.
func (o *AuthNMappingUpdateData) SetType(v AuthNMappingsType)
SetType sets field value.
func (o *AuthNMappingUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateRelationships Relationship of AuthN Mapping update object to Role.
type AuthNMappingUpdateRelationships struct {
// Relationship to role.
Role *RelationshipToRole `json:"role,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateRelationships() *AuthNMappingUpdateRelationships
NewAuthNMappingUpdateRelationships instantiates a new AuthNMappingUpdateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateRelationshipsWithDefaults() *AuthNMappingUpdateRelationships
NewAuthNMappingUpdateRelationshipsWithDefaults instantiates a new AuthNMappingUpdateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateRelationships) GetRole() RelationshipToRole
GetRole returns the Role field value if set, zero value otherwise.
func (o *AuthNMappingUpdateRelationships) GetRoleOk() (*RelationshipToRole, bool)
GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingUpdateRelationships) HasRole() bool
HasRole returns a boolean if a field has been set.
func (o AuthNMappingUpdateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateRelationships) SetRole(v RelationshipToRole)
SetRole gets a reference to the given RelationshipToRole and assigns it to the Role field.
func (o *AuthNMappingUpdateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingUpdateRequest Request to update an AuthN Mapping.
type AuthNMappingUpdateRequest struct {
// Data for updating an AuthN Mapping.
Data AuthNMappingUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingUpdateRequest(data AuthNMappingUpdateData) *AuthNMappingUpdateRequest
NewAuthNMappingUpdateRequest instantiates a new AuthNMappingUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingUpdateRequestWithDefaults() *AuthNMappingUpdateRequest
NewAuthNMappingUpdateRequestWithDefaults instantiates a new AuthNMappingUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingUpdateRequest) GetData() AuthNMappingUpdateData
GetData returns the Data field value.
func (o *AuthNMappingUpdateRequest) GetDataOk() (*AuthNMappingUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o AuthNMappingUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingUpdateRequest) SetData(v AuthNMappingUpdateData)
SetData sets field value.
func (o *AuthNMappingUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingsApi service type
type AuthNMappingsApi datadog.Service
func NewAuthNMappingsApi(client *datadog.APIClient) *AuthNMappingsApi
NewAuthNMappingsApi Returns NewAuthNMappingsApi.
func (a *AuthNMappingsApi) CreateAuthNMapping(ctx _context.Context, body AuthNMappingCreateRequest) (AuthNMappingResponse, *_nethttp.Response, error)
CreateAuthNMapping Create an AuthN Mapping. Create an AuthN Mapping.
func (a *AuthNMappingsApi) DeleteAuthNMapping(ctx _context.Context, authnMappingId string) (*_nethttp.Response, error)
DeleteAuthNMapping Delete an AuthN Mapping. Delete an AuthN Mapping specified by AuthN Mapping UUID.
func (a *AuthNMappingsApi) GetAuthNMapping(ctx _context.Context, authnMappingId string) (AuthNMappingResponse, *_nethttp.Response, error)
GetAuthNMapping Get an AuthN Mapping by UUID. Get an AuthN Mapping specified by the AuthN Mapping UUID.
func (a *AuthNMappingsApi) ListAuthNMappings(ctx _context.Context, o ...ListAuthNMappingsOptionalParameters) (AuthNMappingsResponse, *_nethttp.Response, error)
ListAuthNMappings List all AuthN Mappings. List all AuthN Mappings in the org.
func (a *AuthNMappingsApi) UpdateAuthNMapping(ctx _context.Context, authnMappingId string, body AuthNMappingUpdateRequest) (AuthNMappingResponse, *_nethttp.Response, error)
UpdateAuthNMapping Edit an AuthN Mapping. Edit an AuthN Mapping.
AuthNMappingsResponse Array of AuthN Mappings response.
type AuthNMappingsResponse struct {
// Array of returned AuthN Mappings.
Data []AuthNMapping `json:"data,omitempty"`
// Included data in the AuthN Mapping response.
Included []AuthNMappingIncluded `json:"included,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewAuthNMappingsResponse() *AuthNMappingsResponse
NewAuthNMappingsResponse instantiates a new AuthNMappingsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewAuthNMappingsResponseWithDefaults() *AuthNMappingsResponse
NewAuthNMappingsResponseWithDefaults instantiates a new AuthNMappingsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *AuthNMappingsResponse) GetData() []AuthNMapping
GetData returns the Data field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetDataOk() (*[]AuthNMapping, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) GetIncluded() []AuthNMappingIncluded
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetIncludedOk() (*[]AuthNMappingIncluded, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *AuthNMappingsResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *AuthNMappingsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *AuthNMappingsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *AuthNMappingsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o AuthNMappingsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *AuthNMappingsResponse) SetData(v []AuthNMapping)
SetData gets a reference to the given []AuthNMapping and assigns it to the Data field.
func (o *AuthNMappingsResponse) SetIncluded(v []AuthNMappingIncluded)
SetIncluded gets a reference to the given []AuthNMappingIncluded and assigns it to the Included field.
func (o *AuthNMappingsResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *AuthNMappingsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
AuthNMappingsSort Sorting options for AuthN Mappings.
type AuthNMappingsSort string
List of AuthNMappingsSort.
const (
AUTHNMAPPINGSSORT_CREATED_AT_ASCENDING AuthNMappingsSort = "created_at"
AUTHNMAPPINGSSORT_CREATED_AT_DESCENDING AuthNMappingsSort = "-created_at"
AUTHNMAPPINGSSORT_ROLE_ID_ASCENDING AuthNMappingsSort = "role_id"
AUTHNMAPPINGSSORT_ROLE_ID_DESCENDING AuthNMappingsSort = "-role_id"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_ID_ASCENDING AuthNMappingsSort = "saml_assertion_attribute_id"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_ID_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute_id"
AUTHNMAPPINGSSORT_ROLE_NAME_ASCENDING AuthNMappingsSort = "role.name"
AUTHNMAPPINGSSORT_ROLE_NAME_DESCENDING AuthNMappingsSort = "-role.name"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_KEY_ASCENDING AuthNMappingsSort = "saml_assertion_attribute.attribute_key"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_KEY_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute.attribute_key"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_VALUE_ASCENDING AuthNMappingsSort = "saml_assertion_attribute.attribute_value"
AUTHNMAPPINGSSORT_SAML_ASSERTION_ATTRIBUTE_VALUE_DESCENDING AuthNMappingsSort = "-saml_assertion_attribute.attribute_value"
)
func NewAuthNMappingsSortFromValue(v string) (*AuthNMappingsSort, error)
NewAuthNMappingsSortFromValue returns a pointer to a valid AuthNMappingsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuthNMappingsSort) GetAllowedValues() []AuthNMappingsSort
GetAllowedValues reeturns the list of possible values.
func (v AuthNMappingsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuthNMappingsSort) Ptr() *AuthNMappingsSort
Ptr returns reference to AuthNMappingsSort value.
func (v *AuthNMappingsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
AuthNMappingsType AuthN Mappings resource type.
type AuthNMappingsType string
List of AuthNMappingsType.
const (
AUTHNMAPPINGSTYPE_AUTHN_MAPPINGS AuthNMappingsType = "authn_mappings"
)
func NewAuthNMappingsTypeFromValue(v string) (*AuthNMappingsType, error)
NewAuthNMappingsTypeFromValue returns a pointer to a valid AuthNMappingsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *AuthNMappingsType) GetAllowedValues() []AuthNMappingsType
GetAllowedValues reeturns the list of possible values.
func (v AuthNMappingsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v AuthNMappingsType) Ptr() *AuthNMappingsType
Ptr returns reference to AuthNMappingsType value.
func (v *AuthNMappingsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ChargebackBreakdown Charges breakdown.
type ChargebackBreakdown struct {
// The type of charge for a particular product.
ChargeType *string `json:"charge_type,omitempty"`
// The cost for a particular product and charge type during a given month.
Cost *float64 `json:"cost,omitempty"`
// The product for which cost is being reported.
ProductName *string `json:"product_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewChargebackBreakdown() *ChargebackBreakdown
NewChargebackBreakdown instantiates a new ChargebackBreakdown object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewChargebackBreakdownWithDefaults() *ChargebackBreakdown
NewChargebackBreakdownWithDefaults instantiates a new ChargebackBreakdown object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ChargebackBreakdown) GetChargeType() string
GetChargeType returns the ChargeType field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetChargeTypeOk() (*string, bool)
GetChargeTypeOk returns a tuple with the ChargeType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) GetCost() float64
GetCost returns the Cost field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetCostOk() (*float64, bool)
GetCostOk returns a tuple with the Cost field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) GetProductName() string
GetProductName returns the ProductName field value if set, zero value otherwise.
func (o *ChargebackBreakdown) GetProductNameOk() (*string, bool)
GetProductNameOk returns a tuple with the ProductName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ChargebackBreakdown) HasChargeType() bool
HasChargeType returns a boolean if a field has been set.
func (o *ChargebackBreakdown) HasCost() bool
HasCost returns a boolean if a field has been set.
func (o *ChargebackBreakdown) HasProductName() bool
HasProductName returns a boolean if a field has been set.
func (o ChargebackBreakdown) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ChargebackBreakdown) SetChargeType(v string)
SetChargeType gets a reference to the given string and assigns it to the ChargeType field.
func (o *ChargebackBreakdown) SetCost(v float64)
SetCost gets a reference to the given float64 and assigns it to the Cost field.
func (o *ChargebackBreakdown) SetProductName(v string)
SetProductName gets a reference to the given string and assigns it to the ProductName field.
func (o *ChargebackBreakdown) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleAttributes A Cloud Workload Security Agent rule returned by the API.
type CloudWorkloadSecurityAgentRuleAttributes struct {
// The category of the Agent rule.
Category *string `json:"category,omitempty"`
// When the Agent rule was created, timestamp in milliseconds.
CreationDate *int64 `json:"creationDate,omitempty"`
// The attributes of the user who created the Agent rule.
Creator *CloudWorkloadSecurityAgentRuleCreatorAttributes `json:"creator,omitempty"`
// Whether the rule is included by default.
DefaultRule *bool `json:"defaultRule,omitempty"`
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression *string `json:"expression,omitempty"`
// The name of the Agent rule.
Name *string `json:"name,omitempty"`
// When the Agent rule was last updated, timestamp in milliseconds.
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// The attributes of the user who last updated the Agent rule.
Updater *CloudWorkloadSecurityAgentRuleUpdaterAttributes `json:"updater,omitempty"`
// The version of the Agent rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleAttributes() *CloudWorkloadSecurityAgentRuleAttributes
NewCloudWorkloadSecurityAgentRuleAttributes instantiates a new CloudWorkloadSecurityAgentRuleAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleAttributes
NewCloudWorkloadSecurityAgentRuleAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCategory() string
GetCategory returns the Category field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCategoryOk() (*string, bool)
GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationDate() int64
GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreationDateOk() (*int64, bool)
GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreator() CloudWorkloadSecurityAgentRuleCreatorAttributes
GetCreator returns the Creator field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetCreatorOk() (*CloudWorkloadSecurityAgentRuleCreatorAttributes, bool)
GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDefaultRule() bool
GetDefaultRule returns the DefaultRule field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDefaultRuleOk() (*bool, bool)
GetDefaultRuleOk returns a tuple with the DefaultRule field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetExpression() string
GetExpression returns the Expression field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdater() CloudWorkloadSecurityAgentRuleUpdaterAttributes
GetUpdater returns the Updater field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetUpdaterOk() (*CloudWorkloadSecurityAgentRuleUpdaterAttributes, bool)
GetUpdaterOk returns a tuple with the Updater field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCategory() bool
HasCategory returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCreationDate() bool
HasCreationDate returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasCreator() bool
HasCreator returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasDefaultRule() bool
HasDefaultRule returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasExpression() bool
HasExpression returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasUpdater() bool
HasUpdater returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCategory(v string)
SetCategory gets a reference to the given string and assigns it to the Category field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCreationDate(v int64)
SetCreationDate gets a reference to the given int64 and assigns it to the CreationDate field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetCreator(v CloudWorkloadSecurityAgentRuleCreatorAttributes)
SetCreator gets a reference to the given CloudWorkloadSecurityAgentRuleCreatorAttributes and assigns it to the Creator field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetDefaultRule(v bool)
SetDefaultRule gets a reference to the given bool and assigns it to the DefaultRule field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetExpression(v string)
SetExpression gets a reference to the given string and assigns it to the Expression field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdatedAt(v int64)
SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetUpdater(v CloudWorkloadSecurityAgentRuleUpdaterAttributes)
SetUpdater gets a reference to the given CloudWorkloadSecurityAgentRuleUpdaterAttributes and assigns it to the Updater field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *CloudWorkloadSecurityAgentRuleAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateAttributes Create a new Cloud Workload Security Agent rule.
type CloudWorkloadSecurityAgentRuleCreateAttributes struct {
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression string `json:"expression"`
// The name of the Agent rule.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateAttributes(expression string, name string) *CloudWorkloadSecurityAgentRuleCreateAttributes
NewCloudWorkloadSecurityAgentRuleCreateAttributes instantiates a new CloudWorkloadSecurityAgentRuleCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleCreateAttributes
NewCloudWorkloadSecurityAgentRuleCreateAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetExpression() string
GetExpression returns the Expression field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetExpression(v string)
SetExpression sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) SetName(v string)
SetName sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleCreateData struct {
// Create a new Cloud Workload Security Agent rule.
Attributes CloudWorkloadSecurityAgentRuleCreateAttributes `json:"attributes"`
// The type of the resource. The value should always be `agent_rule`.
Type CloudWorkloadSecurityAgentRuleType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateData(attributes CloudWorkloadSecurityAgentRuleCreateAttributes, typeVar CloudWorkloadSecurityAgentRuleType) *CloudWorkloadSecurityAgentRuleCreateData
NewCloudWorkloadSecurityAgentRuleCreateData instantiates a new CloudWorkloadSecurityAgentRuleCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateDataWithDefaults() *CloudWorkloadSecurityAgentRuleCreateData
NewCloudWorkloadSecurityAgentRuleCreateDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetAttributes() CloudWorkloadSecurityAgentRuleCreateAttributes
GetAttributes returns the Attributes field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateData) SetAttributes(v CloudWorkloadSecurityAgentRuleCreateAttributes)
SetAttributes sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreateRequest Request object that includes the Agent rule to create.
type CloudWorkloadSecurityAgentRuleCreateRequest struct {
// Object for a single Agent rule.
Data CloudWorkloadSecurityAgentRuleCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreateRequest(data CloudWorkloadSecurityAgentRuleCreateData) *CloudWorkloadSecurityAgentRuleCreateRequest
NewCloudWorkloadSecurityAgentRuleCreateRequest instantiates a new CloudWorkloadSecurityAgentRuleCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreateRequestWithDefaults() *CloudWorkloadSecurityAgentRuleCreateRequest
NewCloudWorkloadSecurityAgentRuleCreateRequestWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) GetData() CloudWorkloadSecurityAgentRuleCreateData
GetData returns the Data field value.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) GetDataOk() (*CloudWorkloadSecurityAgentRuleCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) SetData(v CloudWorkloadSecurityAgentRuleCreateData)
SetData sets field value.
func (o *CloudWorkloadSecurityAgentRuleCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleCreatorAttributes The attributes of the user who created the Agent rule.
type CloudWorkloadSecurityAgentRuleCreatorAttributes struct {
// The handle of the user.
Handle *string `json:"handle,omitempty"`
// The name of the user.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleCreatorAttributes() *CloudWorkloadSecurityAgentRuleCreatorAttributes
NewCloudWorkloadSecurityAgentRuleCreatorAttributes instantiates a new CloudWorkloadSecurityAgentRuleCreatorAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleCreatorAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleCreatorAttributes
NewCloudWorkloadSecurityAgentRuleCreatorAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleCreatorAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleCreatorAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleCreatorAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleData struct {
// A Cloud Workload Security Agent rule returned by the API.
Attributes *CloudWorkloadSecurityAgentRuleAttributes `json:"attributes,omitempty"`
// The ID of the Agent rule.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be `agent_rule`.
Type *CloudWorkloadSecurityAgentRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleData() *CloudWorkloadSecurityAgentRuleData
NewCloudWorkloadSecurityAgentRuleData instantiates a new CloudWorkloadSecurityAgentRuleData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleDataWithDefaults() *CloudWorkloadSecurityAgentRuleData
NewCloudWorkloadSecurityAgentRuleDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleData) GetAttributes() CloudWorkloadSecurityAgentRuleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleData) HasType() bool
HasType returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleData) SetAttributes(v CloudWorkloadSecurityAgentRuleAttributes)
SetAttributes gets a reference to the given CloudWorkloadSecurityAgentRuleAttributes and assigns it to the Attributes field.
func (o *CloudWorkloadSecurityAgentRuleData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CloudWorkloadSecurityAgentRuleData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType gets a reference to the given CloudWorkloadSecurityAgentRuleType and assigns it to the Type field.
func (o *CloudWorkloadSecurityAgentRuleData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleResponse Response object that includes an Agent rule.
type CloudWorkloadSecurityAgentRuleResponse struct {
// Object for a single Agent rule.
Data *CloudWorkloadSecurityAgentRuleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleResponse() *CloudWorkloadSecurityAgentRuleResponse
NewCloudWorkloadSecurityAgentRuleResponse instantiates a new CloudWorkloadSecurityAgentRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleResponseWithDefaults() *CloudWorkloadSecurityAgentRuleResponse
NewCloudWorkloadSecurityAgentRuleResponseWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleResponse) GetData() CloudWorkloadSecurityAgentRuleData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleResponse) GetDataOk() (*CloudWorkloadSecurityAgentRuleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleResponse) SetData(v CloudWorkloadSecurityAgentRuleData)
SetData gets a reference to the given CloudWorkloadSecurityAgentRuleData and assigns it to the Data field.
func (o *CloudWorkloadSecurityAgentRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleType The type of the resource. The value should always be `agent_rule`.
type CloudWorkloadSecurityAgentRuleType string
List of CloudWorkloadSecurityAgentRuleType.
const (
CLOUDWORKLOADSECURITYAGENTRULETYPE_AGENT_RULE CloudWorkloadSecurityAgentRuleType = "agent_rule"
)
func NewCloudWorkloadSecurityAgentRuleTypeFromValue(v string) (*CloudWorkloadSecurityAgentRuleType, error)
NewCloudWorkloadSecurityAgentRuleTypeFromValue returns a pointer to a valid CloudWorkloadSecurityAgentRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CloudWorkloadSecurityAgentRuleType) GetAllowedValues() []CloudWorkloadSecurityAgentRuleType
GetAllowedValues reeturns the list of possible values.
func (v CloudWorkloadSecurityAgentRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CloudWorkloadSecurityAgentRuleType) Ptr() *CloudWorkloadSecurityAgentRuleType
Ptr returns reference to CloudWorkloadSecurityAgentRuleType value.
func (v *CloudWorkloadSecurityAgentRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateAttributes Update an existing Cloud Workload Security Agent rule.
type CloudWorkloadSecurityAgentRuleUpdateAttributes struct {
// The description of the Agent rule.
Description *string `json:"description,omitempty"`
// Whether the Agent rule is enabled.
Enabled *bool `json:"enabled,omitempty"`
// The SECL expression of the Agent rule.
Expression *string `json:"expression,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateAttributes() *CloudWorkloadSecurityAgentRuleUpdateAttributes
NewCloudWorkloadSecurityAgentRuleUpdateAttributes instantiates a new CloudWorkloadSecurityAgentRuleUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateAttributes
NewCloudWorkloadSecurityAgentRuleUpdateAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetEnabled() bool
GetEnabled returns the Enabled field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetExpression() string
GetExpression returns the Expression field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) GetExpressionOk() (*string, bool)
GetExpressionOk returns a tuple with the Expression field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) HasExpression() bool
HasExpression returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetEnabled(v bool)
SetEnabled gets a reference to the given bool and assigns it to the Enabled field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) SetExpression(v string)
SetExpression gets a reference to the given string and assigns it to the Expression field.
func (o *CloudWorkloadSecurityAgentRuleUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateData Object for a single Agent rule.
type CloudWorkloadSecurityAgentRuleUpdateData struct {
// Update an existing Cloud Workload Security Agent rule.
Attributes CloudWorkloadSecurityAgentRuleUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be `agent_rule`.
Type CloudWorkloadSecurityAgentRuleType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateData(attributes CloudWorkloadSecurityAgentRuleUpdateAttributes, typeVar CloudWorkloadSecurityAgentRuleType) *CloudWorkloadSecurityAgentRuleUpdateData
NewCloudWorkloadSecurityAgentRuleUpdateData instantiates a new CloudWorkloadSecurityAgentRuleUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateDataWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateData
NewCloudWorkloadSecurityAgentRuleUpdateDataWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetAttributes() CloudWorkloadSecurityAgentRuleUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetAttributesOk() (*CloudWorkloadSecurityAgentRuleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetType() CloudWorkloadSecurityAgentRuleType
GetType returns the Type field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) GetTypeOk() (*CloudWorkloadSecurityAgentRuleType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) SetAttributes(v CloudWorkloadSecurityAgentRuleUpdateAttributes)
SetAttributes sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) SetType(v CloudWorkloadSecurityAgentRuleType)
SetType sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdateRequest Request object that includes the Agent rule with the attributes to update.
type CloudWorkloadSecurityAgentRuleUpdateRequest struct {
// Object for a single Agent rule.
Data CloudWorkloadSecurityAgentRuleUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdateRequest(data CloudWorkloadSecurityAgentRuleUpdateData) *CloudWorkloadSecurityAgentRuleUpdateRequest
NewCloudWorkloadSecurityAgentRuleUpdateRequest instantiates a new CloudWorkloadSecurityAgentRuleUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdateRequestWithDefaults() *CloudWorkloadSecurityAgentRuleUpdateRequest
NewCloudWorkloadSecurityAgentRuleUpdateRequestWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) GetData() CloudWorkloadSecurityAgentRuleUpdateData
GetData returns the Data field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) GetDataOk() (*CloudWorkloadSecurityAgentRuleUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o CloudWorkloadSecurityAgentRuleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) SetData(v CloudWorkloadSecurityAgentRuleUpdateData)
SetData sets field value.
func (o *CloudWorkloadSecurityAgentRuleUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRuleUpdaterAttributes The attributes of the user who last updated the Agent rule.
type CloudWorkloadSecurityAgentRuleUpdaterAttributes struct {
// The handle of the user.
Handle *string `json:"handle,omitempty"`
// The name of the user.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRuleUpdaterAttributes() *CloudWorkloadSecurityAgentRuleUpdaterAttributes
NewCloudWorkloadSecurityAgentRuleUpdaterAttributes instantiates a new CloudWorkloadSecurityAgentRuleUpdaterAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRuleUpdaterAttributesWithDefaults() *CloudWorkloadSecurityAgentRuleUpdaterAttributes
NewCloudWorkloadSecurityAgentRuleUpdaterAttributesWithDefaults instantiates a new CloudWorkloadSecurityAgentRuleUpdaterAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRuleUpdaterAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *CloudWorkloadSecurityAgentRuleUpdaterAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityAgentRulesListResponse Response object that includes a list of Agent rule.
type CloudWorkloadSecurityAgentRulesListResponse struct {
// A list of Agent rules objects.
Data []CloudWorkloadSecurityAgentRuleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCloudWorkloadSecurityAgentRulesListResponse() *CloudWorkloadSecurityAgentRulesListResponse
NewCloudWorkloadSecurityAgentRulesListResponse instantiates a new CloudWorkloadSecurityAgentRulesListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCloudWorkloadSecurityAgentRulesListResponseWithDefaults() *CloudWorkloadSecurityAgentRulesListResponse
NewCloudWorkloadSecurityAgentRulesListResponseWithDefaults instantiates a new CloudWorkloadSecurityAgentRulesListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CloudWorkloadSecurityAgentRulesListResponse) GetData() []CloudWorkloadSecurityAgentRuleData
GetData returns the Data field value if set, zero value otherwise.
func (o *CloudWorkloadSecurityAgentRulesListResponse) GetDataOk() (*[]CloudWorkloadSecurityAgentRuleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CloudWorkloadSecurityAgentRulesListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CloudWorkloadSecurityAgentRulesListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CloudWorkloadSecurityAgentRulesListResponse) SetData(v []CloudWorkloadSecurityAgentRuleData)
SetData gets a reference to the given []CloudWorkloadSecurityAgentRuleData and assigns it to the Data field.
func (o *CloudWorkloadSecurityAgentRulesListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CloudWorkloadSecurityApi service type
type CloudWorkloadSecurityApi datadog.Service
func NewCloudWorkloadSecurityApi(client *datadog.APIClient) *CloudWorkloadSecurityApi
NewCloudWorkloadSecurityApi Returns NewCloudWorkloadSecurityApi.
func (a *CloudWorkloadSecurityApi) CreateCloudWorkloadSecurityAgentRule(ctx _context.Context, body CloudWorkloadSecurityAgentRuleCreateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
CreateCloudWorkloadSecurityAgentRule Create a Cloud Workload Security Agent rule. Create a new Agent rule with the given parameters.
func (a *CloudWorkloadSecurityApi) DeleteCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (*_nethttp.Response, error)
DeleteCloudWorkloadSecurityAgentRule Delete a Cloud Workload Security Agent rule. Delete a specific Agent rule.
func (a *CloudWorkloadSecurityApi) DownloadCloudWorkloadPolicyFile(ctx _context.Context) (*os.File, *_nethttp.Response, error)
DownloadCloudWorkloadPolicyFile Get the latest Cloud Workload Security policy. The download endpoint generates a Cloud Workload Security policy file from your currently active Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to your agents to update the policy running in your environment.
func (a *CloudWorkloadSecurityApi) GetCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
GetCloudWorkloadSecurityAgentRule Get a Cloud Workload Security Agent rule. Get the details of a specific Agent rule.
func (a *CloudWorkloadSecurityApi) ListCloudWorkloadSecurityAgentRules(ctx _context.Context) (CloudWorkloadSecurityAgentRulesListResponse, *_nethttp.Response, error)
ListCloudWorkloadSecurityAgentRules Get all Cloud Workload Security Agent rules. Get the list of Agent rules.
func (a *CloudWorkloadSecurityApi) UpdateCloudWorkloadSecurityAgentRule(ctx _context.Context, agentRuleId string, body CloudWorkloadSecurityAgentRuleUpdateRequest) (CloudWorkloadSecurityAgentRuleResponse, *_nethttp.Response, error)
UpdateCloudWorkloadSecurityAgentRule Update a Cloud Workload Security Agent rule. Update a specific Agent rule. Returns the Agent rule object when the request is successful.
ConfluentAccountCreateRequest Payload schema when adding a Confluent account.
type ConfluentAccountCreateRequest struct {
// The data body for adding a Confluent account.
Data ConfluentAccountCreateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequest(data ConfluentAccountCreateRequestData) *ConfluentAccountCreateRequest
NewConfluentAccountCreateRequest instantiates a new ConfluentAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestWithDefaults() *ConfluentAccountCreateRequest
NewConfluentAccountCreateRequestWithDefaults instantiates a new ConfluentAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequest) GetData() ConfluentAccountCreateRequestData
GetData returns the Data field value.
func (o *ConfluentAccountCreateRequest) GetDataOk() (*ConfluentAccountCreateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequest) SetData(v ConfluentAccountCreateRequestData)
SetData sets field value.
func (o *ConfluentAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountCreateRequestAttributes Attributes associated with the account creation request.
type ConfluentAccountCreateRequestAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// The API secret associated with your Confluent account.
ApiSecret string `json:"api_secret"`
// A list of Confluent resources associated with the Confluent account.
Resources []ConfluentAccountResourceAttributes `json:"resources,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequestAttributes(apiKey string, apiSecret string) *ConfluentAccountCreateRequestAttributes
NewConfluentAccountCreateRequestAttributes instantiates a new ConfluentAccountCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestAttributesWithDefaults() *ConfluentAccountCreateRequestAttributes
NewConfluentAccountCreateRequestAttributesWithDefaults instantiates a new ConfluentAccountCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountCreateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetApiSecret() string
GetApiSecret returns the ApiSecret field value.
func (o *ConfluentAccountCreateRequestAttributes) GetApiSecretOk() (*string, bool)
GetApiSecretOk returns a tuple with the ApiSecret field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetResources() []ConfluentAccountResourceAttributes
GetResources returns the Resources field value if set, zero value otherwise.
func (o *ConfluentAccountCreateRequestAttributes) GetResourcesOk() (*[]ConfluentAccountResourceAttributes, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountCreateRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestAttributes) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *ConfluentAccountCreateRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountCreateRequestAttributes) SetApiSecret(v string)
SetApiSecret sets field value.
func (o *ConfluentAccountCreateRequestAttributes) SetResources(v []ConfluentAccountResourceAttributes)
SetResources gets a reference to the given []ConfluentAccountResourceAttributes and assigns it to the Resources field.
func (o *ConfluentAccountCreateRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountCreateRequestData The data body for adding a Confluent account.
type ConfluentAccountCreateRequestData struct {
// Attributes associated with the account creation request.
Attributes ConfluentAccountCreateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountCreateRequestData(attributes ConfluentAccountCreateRequestAttributes, typeVar ConfluentAccountType) *ConfluentAccountCreateRequestData
NewConfluentAccountCreateRequestData instantiates a new ConfluentAccountCreateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountCreateRequestDataWithDefaults() *ConfluentAccountCreateRequestData
NewConfluentAccountCreateRequestDataWithDefaults instantiates a new ConfluentAccountCreateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountCreateRequestData) GetAttributes() ConfluentAccountCreateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountCreateRequestData) GetAttributesOk() (*ConfluentAccountCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountCreateRequestData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountCreateRequestData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountCreateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountCreateRequestData) SetAttributes(v ConfluentAccountCreateRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountCreateRequestData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountCreateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResourceAttributes Attributes object for updating a Confluent resource.
type ConfluentAccountResourceAttributes struct {
// The ID associated with a Confluent resource.
Id *string `json:"id,omitempty"`
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType *string `json:"resource_type,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResourceAttributes() *ConfluentAccountResourceAttributes
NewConfluentAccountResourceAttributes instantiates a new ConfluentAccountResourceAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResourceAttributesWithDefaults() *ConfluentAccountResourceAttributes
NewConfluentAccountResourceAttributesWithDefaults instantiates a new ConfluentAccountResourceAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResourceAttributes) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountResourceAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResourceAttributes) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ConfluentAccountResourceAttributes) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o *ConfluentAccountResourceAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountResourceAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResourceAttributes) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ConfluentAccountResourceAttributes) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *ConfluentAccountResourceAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountResourceAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponse The expected response schema when getting a Confluent account.
type ConfluentAccountResponse struct {
// An API key and API secret pair that represents a Confluent account.
Data *ConfluentAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponse() *ConfluentAccountResponse
NewConfluentAccountResponse instantiates a new ConfluentAccountResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseWithDefaults() *ConfluentAccountResponse
NewConfluentAccountResponseWithDefaults instantiates a new ConfluentAccountResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponse) GetData() ConfluentAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentAccountResponse) GetDataOk() (*ConfluentAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentAccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponse) SetData(v ConfluentAccountResponseData)
SetData gets a reference to the given ConfluentAccountResponseData and assigns it to the Data field.
func (o *ConfluentAccountResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponseAttributes The attributes of a Confluent account.
type ConfluentAccountResponseAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// A list of Confluent resources associated with the Confluent account.
Resources []ConfluentResourceResponseAttributes `json:"resources,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponseAttributes(apiKey string) *ConfluentAccountResponseAttributes
NewConfluentAccountResponseAttributes instantiates a new ConfluentAccountResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseAttributesWithDefaults() *ConfluentAccountResponseAttributes
NewConfluentAccountResponseAttributesWithDefaults instantiates a new ConfluentAccountResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponseAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountResponseAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) GetResources() []ConfluentResourceResponseAttributes
GetResources returns the Resources field value if set, zero value otherwise.
func (o *ConfluentAccountResponseAttributes) GetResourcesOk() (*[]ConfluentResourceResponseAttributes, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseAttributes) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *ConfluentAccountResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponseAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountResponseAttributes) SetResources(v []ConfluentResourceResponseAttributes)
SetResources gets a reference to the given []ConfluentResourceResponseAttributes and assigns it to the Resources field.
func (o *ConfluentAccountResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountResponseData An API key and API secret pair that represents a Confluent account.
type ConfluentAccountResponseData struct {
// The attributes of a Confluent account.
Attributes ConfluentAccountResponseAttributes `json:"attributes"`
// A randomly generated ID associated with a Confluent account.
Id string `json:"id"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountResponseData(attributes ConfluentAccountResponseAttributes, id string, typeVar ConfluentAccountType) *ConfluentAccountResponseData
NewConfluentAccountResponseData instantiates a new ConfluentAccountResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountResponseDataWithDefaults() *ConfluentAccountResponseData
NewConfluentAccountResponseDataWithDefaults instantiates a new ConfluentAccountResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountResponseData) GetAttributes() ConfluentAccountResponseAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountResponseData) GetAttributesOk() (*ConfluentAccountResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseData) GetId() string
GetId returns the Id field value.
func (o *ConfluentAccountResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentAccountResponseData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountResponseData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountResponseData) SetAttributes(v ConfluentAccountResponseAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountResponseData) SetId(v string)
SetId sets field value.
func (o *ConfluentAccountResponseData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountType The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
type ConfluentAccountType string
List of ConfluentAccountType.
const (
CONFLUENTACCOUNTTYPE_CONFLUENT_CLOUD_ACCOUNTS ConfluentAccountType = "confluent-cloud-accounts"
)
func NewConfluentAccountTypeFromValue(v string) (*ConfluentAccountType, error)
NewConfluentAccountTypeFromValue returns a pointer to a valid ConfluentAccountType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ConfluentAccountType) GetAllowedValues() []ConfluentAccountType
GetAllowedValues reeturns the list of possible values.
func (v ConfluentAccountType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ConfluentAccountType) Ptr() *ConfluentAccountType
Ptr returns reference to ConfluentAccountType value.
func (v *ConfluentAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequest The JSON:API request for updating a Confluent account.
type ConfluentAccountUpdateRequest struct {
// Data object for updating a Confluent account.
Data ConfluentAccountUpdateRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequest(data ConfluentAccountUpdateRequestData) *ConfluentAccountUpdateRequest
NewConfluentAccountUpdateRequest instantiates a new ConfluentAccountUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestWithDefaults() *ConfluentAccountUpdateRequest
NewConfluentAccountUpdateRequestWithDefaults instantiates a new ConfluentAccountUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequest) GetData() ConfluentAccountUpdateRequestData
GetData returns the Data field value.
func (o *ConfluentAccountUpdateRequest) GetDataOk() (*ConfluentAccountUpdateRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentAccountUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequest) SetData(v ConfluentAccountUpdateRequestData)
SetData sets field value.
func (o *ConfluentAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequestAttributes Attributes object for updating a Confluent account.
type ConfluentAccountUpdateRequestAttributes struct {
// The API key associated with your Confluent account.
ApiKey string `json:"api_key"`
// The API secret associated with your Confluent account.
ApiSecret string `json:"api_secret"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequestAttributes(apiKey string, apiSecret string) *ConfluentAccountUpdateRequestAttributes
NewConfluentAccountUpdateRequestAttributes instantiates a new ConfluentAccountUpdateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestAttributesWithDefaults() *ConfluentAccountUpdateRequestAttributes
NewConfluentAccountUpdateRequestAttributesWithDefaults instantiates a new ConfluentAccountUpdateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiKey() string
GetApiKey returns the ApiKey field value.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiKeyOk() (*string, bool)
GetApiKeyOk returns a tuple with the ApiKey field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiSecret() string
GetApiSecret returns the ApiSecret field value.
func (o *ConfluentAccountUpdateRequestAttributes) GetApiSecretOk() (*string, bool)
GetApiSecretOk returns a tuple with the ApiSecret field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentAccountUpdateRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentAccountUpdateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequestAttributes) SetApiKey(v string)
SetApiKey sets field value.
func (o *ConfluentAccountUpdateRequestAttributes) SetApiSecret(v string)
SetApiSecret sets field value.
func (o *ConfluentAccountUpdateRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentAccountUpdateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountUpdateRequestData Data object for updating a Confluent account.
type ConfluentAccountUpdateRequestData struct {
// Attributes object for updating a Confluent account.
Attributes ConfluentAccountUpdateRequestAttributes `json:"attributes"`
// The JSON:API type for this API. Should always be `confluent-cloud-accounts`.
Type ConfluentAccountType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountUpdateRequestData(attributes ConfluentAccountUpdateRequestAttributes, typeVar ConfluentAccountType) *ConfluentAccountUpdateRequestData
NewConfluentAccountUpdateRequestData instantiates a new ConfluentAccountUpdateRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountUpdateRequestDataWithDefaults() *ConfluentAccountUpdateRequestData
NewConfluentAccountUpdateRequestDataWithDefaults instantiates a new ConfluentAccountUpdateRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountUpdateRequestData) GetAttributes() ConfluentAccountUpdateRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentAccountUpdateRequestData) GetAttributesOk() (*ConfluentAccountUpdateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentAccountUpdateRequestData) GetType() ConfluentAccountType
GetType returns the Type field value.
func (o *ConfluentAccountUpdateRequestData) GetTypeOk() (*ConfluentAccountType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentAccountUpdateRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountUpdateRequestData) SetAttributes(v ConfluentAccountUpdateRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentAccountUpdateRequestData) SetType(v ConfluentAccountType)
SetType sets field value.
func (o *ConfluentAccountUpdateRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentAccountsResponse Confluent account returned by the API.
type ConfluentAccountsResponse struct {
// The Confluent account.
Data []ConfluentAccountResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentAccountsResponse() *ConfluentAccountsResponse
NewConfluentAccountsResponse instantiates a new ConfluentAccountsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentAccountsResponseWithDefaults() *ConfluentAccountsResponse
NewConfluentAccountsResponseWithDefaults instantiates a new ConfluentAccountsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentAccountsResponse) GetData() []ConfluentAccountResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentAccountsResponse) GetDataOk() (*[]ConfluentAccountResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentAccountsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentAccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentAccountsResponse) SetData(v []ConfluentAccountResponseData)
SetData gets a reference to the given []ConfluentAccountResponseData and assigns it to the Data field.
func (o *ConfluentAccountsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentCloudApi service type
type ConfluentCloudApi datadog.Service
func NewConfluentCloudApi(client *datadog.APIClient) *ConfluentCloudApi
NewConfluentCloudApi Returns NewConfluentCloudApi.
func (a *ConfluentCloudApi) CreateConfluentAccount(ctx _context.Context, body ConfluentAccountCreateRequest) (ConfluentAccountResponse, *_nethttp.Response, error)
CreateConfluentAccount Add Confluent account. Create a Confluent account.
func (a *ConfluentCloudApi) CreateConfluentResource(ctx _context.Context, accountId string, body ConfluentResourceRequest) (ConfluentResourceResponse, *_nethttp.Response, error)
CreateConfluentResource Add resource to Confluent account. Create a Confluent resource for the account associated with the provided ID.
func (a *ConfluentCloudApi) DeleteConfluentAccount(ctx _context.Context, accountId string) (*_nethttp.Response, error)
DeleteConfluentAccount Delete Confluent account. Delete a Confluent account with the provided account ID.
func (a *ConfluentCloudApi) DeleteConfluentResource(ctx _context.Context, accountId string, resourceId string) (*_nethttp.Response, error)
DeleteConfluentResource Delete resource from Confluent account. Delete a Confluent resource with the provided resource id for the account associated with the provided account ID.
func (a *ConfluentCloudApi) GetConfluentAccount(ctx _context.Context, accountId string) (ConfluentAccountResponse, *_nethttp.Response, error)
GetConfluentAccount Get Confluent account. Get the Confluent account with the provided account ID.
func (a *ConfluentCloudApi) GetConfluentResource(ctx _context.Context, accountId string, resourceId string) (ConfluentResourceResponse, *_nethttp.Response, error)
GetConfluentResource Get resource from Confluent account. Get a Confluent resource with the provided resource id for the account associated with the provided account ID.
func (a *ConfluentCloudApi) ListConfluentAccount(ctx _context.Context) (ConfluentAccountsResponse, *_nethttp.Response, error)
ListConfluentAccount List Confluent accounts. List Confluent accounts.
func (a *ConfluentCloudApi) ListConfluentResource(ctx _context.Context, accountId string) (ConfluentResourcesResponse, *_nethttp.Response, error)
ListConfluentResource List Confluent Account resources. Get a Confluent resource for the account associated with the provided ID.
func (a *ConfluentCloudApi) UpdateConfluentAccount(ctx _context.Context, accountId string, body ConfluentAccountUpdateRequest) (ConfluentAccountResponse, *_nethttp.Response, error)
UpdateConfluentAccount Update Confluent account. Update the Confluent account with the provided account ID.
func (a *ConfluentCloudApi) UpdateConfluentResource(ctx _context.Context, accountId string, resourceId string, body ConfluentResourceRequest) (ConfluentResourceResponse, *_nethttp.Response, error)
UpdateConfluentResource Update resource in Confluent account. Update a Confluent resource with the provided resource id for the account associated with the provided account ID.
ConfluentResourceRequest The JSON:API request for updating a Confluent resource.
type ConfluentResourceRequest struct {
// JSON:API request for updating a Confluent resource.
Data ConfluentResourceRequestData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequest(data ConfluentResourceRequestData) *ConfluentResourceRequest
NewConfluentResourceRequest instantiates a new ConfluentResourceRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestWithDefaults() *ConfluentResourceRequest
NewConfluentResourceRequestWithDefaults instantiates a new ConfluentResourceRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequest) GetData() ConfluentResourceRequestData
GetData returns the Data field value.
func (o *ConfluentResourceRequest) GetDataOk() (*ConfluentResourceRequestData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ConfluentResourceRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequest) SetData(v ConfluentResourceRequestData)
SetData sets field value.
func (o *ConfluentResourceRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceRequestAttributes Attributes object for updating a Confluent resource.
type ConfluentResourceRequestAttributes struct {
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType *string `json:"resource_type,omitempty"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequestAttributes() *ConfluentResourceRequestAttributes
NewConfluentResourceRequestAttributes instantiates a new ConfluentResourceRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestAttributesWithDefaults() *ConfluentResourceRequestAttributes
NewConfluentResourceRequestAttributesWithDefaults instantiates a new ConfluentResourceRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequestAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value if set, zero value otherwise.
func (o *ConfluentResourceRequestAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentResourceRequestAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestAttributes) HasResourceType() bool
HasResourceType returns a boolean if a field has been set.
func (o *ConfluentResourceRequestAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentResourceRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequestAttributes) SetResourceType(v string)
SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *ConfluentResourceRequestAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentResourceRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceRequestData JSON:API request for updating a Confluent resource.
type ConfluentResourceRequestData struct {
// Attributes object for updating a Confluent resource.
Attributes ConfluentResourceRequestAttributes `json:"attributes"`
// The ID associated with a Confluent resource.
Id string `json:"id"`
// The JSON:API type for this request.
Type ConfluentResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceRequestData(attributes ConfluentResourceRequestAttributes, id string, typeVar ConfluentResourceType) *ConfluentResourceRequestData
NewConfluentResourceRequestData instantiates a new ConfluentResourceRequestData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceRequestDataWithDefaults() *ConfluentResourceRequestData
NewConfluentResourceRequestDataWithDefaults instantiates a new ConfluentResourceRequestData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceRequestData) GetAttributes() ConfluentResourceRequestAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentResourceRequestData) GetAttributesOk() (*ConfluentResourceRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestData) GetId() string
GetId returns the Id field value.
func (o *ConfluentResourceRequestData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentResourceRequestData) GetType() ConfluentResourceType
GetType returns the Type field value.
func (o *ConfluentResourceRequestData) GetTypeOk() (*ConfluentResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentResourceRequestData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceRequestData) SetAttributes(v ConfluentResourceRequestAttributes)
SetAttributes sets field value.
func (o *ConfluentResourceRequestData) SetId(v string)
SetId sets field value.
func (o *ConfluentResourceRequestData) SetType(v ConfluentResourceType)
SetType sets field value.
func (o *ConfluentResourceRequestData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponse Response schema when interacting with a Confluent resource.
type ConfluentResourceResponse struct {
// Confluent Cloud resource data.
Data *ConfluentResourceResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponse() *ConfluentResourceResponse
NewConfluentResourceResponse instantiates a new ConfluentResourceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseWithDefaults() *ConfluentResourceResponse
NewConfluentResourceResponseWithDefaults instantiates a new ConfluentResourceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponse) GetData() ConfluentResourceResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentResourceResponse) GetDataOk() (*ConfluentResourceResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentResourceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponse) SetData(v ConfluentResourceResponseData)
SetData gets a reference to the given ConfluentResourceResponseData and assigns it to the Data field.
func (o *ConfluentResourceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponseAttributes Model representation of a Confluent Cloud resource.
type ConfluentResourceResponseAttributes struct {
// The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
ResourceType string `json:"resource_type"`
// A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponseAttributes(resourceType string) *ConfluentResourceResponseAttributes
NewConfluentResourceResponseAttributes instantiates a new ConfluentResourceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseAttributesWithDefaults() *ConfluentResourceResponseAttributes
NewConfluentResourceResponseAttributesWithDefaults instantiates a new ConfluentResourceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponseAttributes) GetResourceType() string
GetResourceType returns the ResourceType field value.
func (o *ConfluentResourceResponseAttributes) GetResourceTypeOk() (*string, bool)
GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ConfluentResourceResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ConfluentResourceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponseAttributes) SetResourceType(v string)
SetResourceType sets field value.
func (o *ConfluentResourceResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ConfluentResourceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceResponseData Confluent Cloud resource data.
type ConfluentResourceResponseData struct {
// Model representation of a Confluent Cloud resource.
Attributes ConfluentResourceResponseAttributes `json:"attributes"`
// The ID associated with the Confluent resource.
Id string `json:"id"`
// The JSON:API type for this request.
Type ConfluentResourceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourceResponseData(attributes ConfluentResourceResponseAttributes, id string, typeVar ConfluentResourceType) *ConfluentResourceResponseData
NewConfluentResourceResponseData instantiates a new ConfluentResourceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourceResponseDataWithDefaults() *ConfluentResourceResponseData
NewConfluentResourceResponseDataWithDefaults instantiates a new ConfluentResourceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourceResponseData) GetAttributes() ConfluentResourceResponseAttributes
GetAttributes returns the Attributes field value.
func (o *ConfluentResourceResponseData) GetAttributesOk() (*ConfluentResourceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseData) GetId() string
GetId returns the Id field value.
func (o *ConfluentResourceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *ConfluentResourceResponseData) GetType() ConfluentResourceType
GetType returns the Type field value.
func (o *ConfluentResourceResponseData) GetTypeOk() (*ConfluentResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o ConfluentResourceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourceResponseData) SetAttributes(v ConfluentResourceResponseAttributes)
SetAttributes sets field value.
func (o *ConfluentResourceResponseData) SetId(v string)
SetId sets field value.
func (o *ConfluentResourceResponseData) SetType(v ConfluentResourceType)
SetType sets field value.
func (o *ConfluentResourceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ConfluentResourceType The JSON:API type for this request.
type ConfluentResourceType string
List of ConfluentResourceType.
const (
CONFLUENTRESOURCETYPE_CONFLUENT_CLOUD_RESOURCES ConfluentResourceType = "confluent-cloud-resources"
)
func NewConfluentResourceTypeFromValue(v string) (*ConfluentResourceType, error)
NewConfluentResourceTypeFromValue returns a pointer to a valid ConfluentResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ConfluentResourceType) GetAllowedValues() []ConfluentResourceType
GetAllowedValues reeturns the list of possible values.
func (v ConfluentResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ConfluentResourceType) Ptr() *ConfluentResourceType
Ptr returns reference to ConfluentResourceType value.
func (v *ConfluentResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ConfluentResourcesResponse Response schema when interacting with a list of Confluent resources.
type ConfluentResourcesResponse struct {
// The JSON:API data attribute.
Data []ConfluentResourceResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewConfluentResourcesResponse() *ConfluentResourcesResponse
NewConfluentResourcesResponse instantiates a new ConfluentResourcesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewConfluentResourcesResponseWithDefaults() *ConfluentResourcesResponse
NewConfluentResourcesResponseWithDefaults instantiates a new ConfluentResourcesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ConfluentResourcesResponse) GetData() []ConfluentResourceResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *ConfluentResourcesResponse) GetDataOk() (*[]ConfluentResourceResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ConfluentResourcesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ConfluentResourcesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ConfluentResourcesResponse) SetData(v []ConfluentResourceResponseData)
SetData gets a reference to the given []ConfluentResourceResponseData and assigns it to the Data field.
func (o *ConfluentResourcesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ContentEncoding HTTP header used to compress the media-type.
type ContentEncoding string
List of ContentEncoding.
const (
CONTENTENCODING_IDENTITY ContentEncoding = "identity"
CONTENTENCODING_GZIP ContentEncoding = "gzip"
CONTENTENCODING_DEFLATE ContentEncoding = "deflate"
)
func NewContentEncodingFromValue(v string) (*ContentEncoding, error)
NewContentEncodingFromValue returns a pointer to a valid ContentEncoding for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ContentEncoding) GetAllowedValues() []ContentEncoding
GetAllowedValues reeturns the list of possible values.
func (v ContentEncoding) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ContentEncoding) Ptr() *ContentEncoding
Ptr returns reference to ContentEncoding value.
func (v *ContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
CostByOrg Cost data.
type CostByOrg struct {
// Cost attributes data.
Attributes *CostByOrgAttributes `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of cost data.
Type *CostByOrgType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrg() *CostByOrg
NewCostByOrg instantiates a new CostByOrg object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgWithDefaults() *CostByOrg
NewCostByOrgWithDefaults instantiates a new CostByOrg object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrg) GetAttributes() CostByOrgAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *CostByOrg) GetAttributesOk() (*CostByOrgAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *CostByOrg) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) GetType() CostByOrgType
GetType returns the Type field value if set, zero value otherwise.
func (o *CostByOrg) GetTypeOk() (*CostByOrgType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrg) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *CostByOrg) HasId() bool
HasId returns a boolean if a field has been set.
func (o *CostByOrg) HasType() bool
HasType returns a boolean if a field has been set.
func (o CostByOrg) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrg) SetAttributes(v CostByOrgAttributes)
SetAttributes gets a reference to the given CostByOrgAttributes and assigns it to the Attributes field.
func (o *CostByOrg) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *CostByOrg) SetType(v CostByOrgType)
SetType gets a reference to the given CostByOrgType and assigns it to the Type field.
func (o *CostByOrg) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgAttributes Cost attributes data.
type CostByOrgAttributes struct {
// List of charges data reported for the requested month.
Charges []ChargebackBreakdown `json:"charges,omitempty"`
// The month requested.
Date *time.Time `json:"date,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// The total cost of products for the month.
TotalCost *float64 `json:"total_cost,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrgAttributes() *CostByOrgAttributes
NewCostByOrgAttributes instantiates a new CostByOrgAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgAttributesWithDefaults() *CostByOrgAttributes
NewCostByOrgAttributesWithDefaults instantiates a new CostByOrgAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrgAttributes) GetCharges() []ChargebackBreakdown
GetCharges returns the Charges field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetChargesOk() (*[]ChargebackBreakdown, bool)
GetChargesOk returns a tuple with the Charges field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetDate() time.Time
GetDate returns the Date field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetDateOk() (*time.Time, bool)
GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) GetTotalCost() float64
GetTotalCost returns the TotalCost field value if set, zero value otherwise.
func (o *CostByOrgAttributes) GetTotalCostOk() (*float64, bool)
GetTotalCostOk returns a tuple with the TotalCost field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgAttributes) HasCharges() bool
HasCharges returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasDate() bool
HasDate returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *CostByOrgAttributes) HasTotalCost() bool
HasTotalCost returns a boolean if a field has been set.
func (o CostByOrgAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrgAttributes) SetCharges(v []ChargebackBreakdown)
SetCharges gets a reference to the given []ChargebackBreakdown and assigns it to the Charges field.
func (o *CostByOrgAttributes) SetDate(v time.Time)
SetDate gets a reference to the given time.Time and assigns it to the Date field.
func (o *CostByOrgAttributes) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *CostByOrgAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *CostByOrgAttributes) SetTotalCost(v float64)
SetTotalCost gets a reference to the given float64 and assigns it to the TotalCost field.
func (o *CostByOrgAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgResponse Chargeback Summary response.
type CostByOrgResponse struct {
// Response containing Chargeback Summary.
Data []CostByOrg `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCostByOrgResponse() *CostByOrgResponse
NewCostByOrgResponse instantiates a new CostByOrgResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCostByOrgResponseWithDefaults() *CostByOrgResponse
NewCostByOrgResponseWithDefaults instantiates a new CostByOrgResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *CostByOrgResponse) GetData() []CostByOrg
GetData returns the Data field value if set, zero value otherwise.
func (o *CostByOrgResponse) GetDataOk() (*[]CostByOrg, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *CostByOrgResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o CostByOrgResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *CostByOrgResponse) SetData(v []CostByOrg)
SetData gets a reference to the given []CostByOrg and assigns it to the Data field.
func (o *CostByOrgResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
CostByOrgType Type of cost data.
type CostByOrgType string
List of CostByOrgType.
const (
COSTBYORGTYPE_COST_BY_ORG CostByOrgType = "cost_by_org"
)
func NewCostByOrgTypeFromValue(v string) (*CostByOrgType, error)
NewCostByOrgTypeFromValue returns a pointer to a valid CostByOrgType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *CostByOrgType) GetAllowedValues() []CostByOrgType
GetAllowedValues reeturns the list of possible values.
func (v CostByOrgType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v CostByOrgType) Ptr() *CostByOrgType
Ptr returns reference to CostByOrgType value.
func (v *CostByOrgType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
Creator Creator of the object.
type Creator struct {
// Email of the creator.
Email *string `json:"email,omitempty"`
// Handle of the creator.
Handle *string `json:"handle,omitempty"`
// Name of the creator.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewCreator() *Creator
NewCreator instantiates a new Creator object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewCreatorWithDefaults() *Creator
NewCreatorWithDefaults instantiates a new Creator object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Creator) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *Creator) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Creator) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *Creator) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Creator) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *Creator) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Creator) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *Creator) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *Creator) HasName() bool
HasName returns a boolean if a field has been set.
func (o Creator) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Creator) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *Creator) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *Creator) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *Creator) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListAddItemsRequest Request containing a list of dashboards to add.
type DashboardListAddItemsRequest struct {
// List of dashboards to add the dashboard list.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListAddItemsRequest() *DashboardListAddItemsRequest
NewDashboardListAddItemsRequest instantiates a new DashboardListAddItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListAddItemsRequestWithDefaults() *DashboardListAddItemsRequest
NewDashboardListAddItemsRequestWithDefaults instantiates a new DashboardListAddItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListAddItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListAddItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListAddItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListAddItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListAddItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListAddItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListAddItemsResponse Response containing a list of added dashboards.
type DashboardListAddItemsResponse struct {
// List of dashboards added to the dashboard list.
AddedDashboardsToList []DashboardListItemResponse `json:"added_dashboards_to_list,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListAddItemsResponse() *DashboardListAddItemsResponse
NewDashboardListAddItemsResponse instantiates a new DashboardListAddItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListAddItemsResponseWithDefaults() *DashboardListAddItemsResponse
NewDashboardListAddItemsResponseWithDefaults instantiates a new DashboardListAddItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListAddItemsResponse) GetAddedDashboardsToList() []DashboardListItemResponse
GetAddedDashboardsToList returns the AddedDashboardsToList field value if set, zero value otherwise.
func (o *DashboardListAddItemsResponse) GetAddedDashboardsToListOk() (*[]DashboardListItemResponse, bool)
GetAddedDashboardsToListOk returns a tuple with the AddedDashboardsToList field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListAddItemsResponse) HasAddedDashboardsToList() bool
HasAddedDashboardsToList returns a boolean if a field has been set.
func (o DashboardListAddItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListAddItemsResponse) SetAddedDashboardsToList(v []DashboardListItemResponse)
SetAddedDashboardsToList gets a reference to the given []DashboardListItemResponse and assigns it to the AddedDashboardsToList field.
func (o *DashboardListAddItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListDeleteItemsRequest Request containing a list of dashboards to delete.
type DashboardListDeleteItemsRequest struct {
// List of dashboards to delete from the dashboard list.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListDeleteItemsRequest() *DashboardListDeleteItemsRequest
NewDashboardListDeleteItemsRequest instantiates a new DashboardListDeleteItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListDeleteItemsRequestWithDefaults() *DashboardListDeleteItemsRequest
NewDashboardListDeleteItemsRequestWithDefaults instantiates a new DashboardListDeleteItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListDeleteItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListDeleteItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListDeleteItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListDeleteItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListDeleteItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListDeleteItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListDeleteItemsResponse Response containing a list of deleted dashboards.
type DashboardListDeleteItemsResponse struct {
// List of dashboards deleted from the dashboard list.
DeletedDashboardsFromList []DashboardListItemResponse `json:"deleted_dashboards_from_list,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListDeleteItemsResponse() *DashboardListDeleteItemsResponse
NewDashboardListDeleteItemsResponse instantiates a new DashboardListDeleteItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListDeleteItemsResponseWithDefaults() *DashboardListDeleteItemsResponse
NewDashboardListDeleteItemsResponseWithDefaults instantiates a new DashboardListDeleteItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListDeleteItemsResponse) GetDeletedDashboardsFromList() []DashboardListItemResponse
GetDeletedDashboardsFromList returns the DeletedDashboardsFromList field value if set, zero value otherwise.
func (o *DashboardListDeleteItemsResponse) GetDeletedDashboardsFromListOk() (*[]DashboardListItemResponse, bool)
GetDeletedDashboardsFromListOk returns a tuple with the DeletedDashboardsFromList field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListDeleteItemsResponse) HasDeletedDashboardsFromList() bool
HasDeletedDashboardsFromList returns a boolean if a field has been set.
func (o DashboardListDeleteItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListDeleteItemsResponse) SetDeletedDashboardsFromList(v []DashboardListItemResponse)
SetDeletedDashboardsFromList gets a reference to the given []DashboardListItemResponse and assigns it to the DeletedDashboardsFromList field.
func (o *DashboardListDeleteItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItem A dashboard within a list.
type DashboardListItem struct {
// Creator of the object.
Author *Creator `json:"author,omitempty"`
// Date of creation of the dashboard.
Created *time.Time `json:"created,omitempty"`
// URL to the icon of the dashboard.
Icon *string `json:"icon,omitempty"`
// ID of the dashboard.
Id string `json:"id"`
// Whether or not the dashboard is in the favorites.
IsFavorite *bool `json:"is_favorite,omitempty"`
// Whether or not the dashboard is read only.
IsReadOnly *bool `json:"is_read_only,omitempty"`
// Whether the dashboard is publicly shared or not.
IsShared *bool `json:"is_shared,omitempty"`
// Date of last edition of the dashboard.
Modified *time.Time `json:"modified,omitempty"`
// Popularity of the dashboard.
Popularity *int32 `json:"popularity,omitempty"`
// Title of the dashboard.
Title *string `json:"title,omitempty"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// URL path to the dashboard.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItem(id string, typeVar DashboardType) *DashboardListItem
NewDashboardListItem instantiates a new DashboardListItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemWithDefaults() *DashboardListItem
NewDashboardListItemWithDefaults instantiates a new DashboardListItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItem) GetAuthor() Creator
GetAuthor returns the Author field value if set, zero value otherwise.
func (o *DashboardListItem) GetAuthorOk() (*Creator, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *DashboardListItem) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIcon() string
GetIcon returns the Icon field value if set, zero value otherwise.
func (o *DashboardListItem) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetId() string
GetId returns the Id field value.
func (o *DashboardListItem) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIsFavorite() bool
GetIsFavorite returns the IsFavorite field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsFavoriteOk() (*bool, bool)
GetIsFavoriteOk returns a tuple with the IsFavorite field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIsReadOnly() bool
GetIsReadOnly returns the IsReadOnly field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsReadOnlyOk() (*bool, bool)
GetIsReadOnlyOk returns a tuple with the IsReadOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetIsShared() bool
GetIsShared returns the IsShared field value if set, zero value otherwise.
func (o *DashboardListItem) GetIsSharedOk() (*bool, bool)
GetIsSharedOk returns a tuple with the IsShared field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *DashboardListItem) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetPopularity() int32
GetPopularity returns the Popularity field value if set, zero value otherwise.
func (o *DashboardListItem) GetPopularityOk() (*int32, bool)
GetPopularityOk returns a tuple with the Popularity field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *DashboardListItem) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItem) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *DashboardListItem) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *DashboardListItem) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItem) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (o *DashboardListItem) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *DashboardListItem) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsFavorite() bool
HasIsFavorite returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsReadOnly() bool
HasIsReadOnly returns a boolean if a field has been set.
func (o *DashboardListItem) HasIsShared() bool
HasIsShared returns a boolean if a field has been set.
func (o *DashboardListItem) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *DashboardListItem) HasPopularity() bool
HasPopularity returns a boolean if a field has been set.
func (o *DashboardListItem) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *DashboardListItem) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o DashboardListItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItem) SetAuthor(v Creator)
SetAuthor gets a reference to the given Creator and assigns it to the Author field.
func (o *DashboardListItem) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *DashboardListItem) SetIcon(v string)
SetIcon gets a reference to the given string and assigns it to the Icon field.
func (o *DashboardListItem) SetId(v string)
SetId sets field value.
func (o *DashboardListItem) SetIsFavorite(v bool)
SetIsFavorite gets a reference to the given bool and assigns it to the IsFavorite field.
func (o *DashboardListItem) SetIsReadOnly(v bool)
SetIsReadOnly gets a reference to the given bool and assigns it to the IsReadOnly field.
func (o *DashboardListItem) SetIsShared(v bool)
SetIsShared gets a reference to the given bool and assigns it to the IsShared field.
func (o *DashboardListItem) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *DashboardListItem) SetPopularity(v int32)
SetPopularity gets a reference to the given int32 and assigns it to the Popularity field.
func (o *DashboardListItem) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *DashboardListItem) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItem) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *DashboardListItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItemRequest A dashboard within a list.
type DashboardListItemRequest struct {
// ID of the dashboard.
Id string `json:"id"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItemRequest(id string, typeVar DashboardType) *DashboardListItemRequest
NewDashboardListItemRequest instantiates a new DashboardListItemRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemRequestWithDefaults() *DashboardListItemRequest
NewDashboardListItemRequestWithDefaults instantiates a new DashboardListItemRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItemRequest) GetId() string
GetId returns the Id field value.
func (o *DashboardListItemRequest) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItemRequest) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItemRequest) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DashboardListItemRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItemRequest) SetId(v string)
SetId sets field value.
func (o *DashboardListItemRequest) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItemRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItemResponse A dashboard within a list.
type DashboardListItemResponse struct {
// ID of the dashboard.
Id string `json:"id"`
// The type of the dashboard.
Type DashboardType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItemResponse(id string, typeVar DashboardType) *DashboardListItemResponse
NewDashboardListItemResponse instantiates a new DashboardListItemResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemResponseWithDefaults() *DashboardListItemResponse
NewDashboardListItemResponseWithDefaults instantiates a new DashboardListItemResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItemResponse) GetId() string
GetId returns the Id field value.
func (o *DashboardListItemResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *DashboardListItemResponse) GetType() DashboardType
GetType returns the Type field value.
func (o *DashboardListItemResponse) GetTypeOk() (*DashboardType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o DashboardListItemResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItemResponse) SetId(v string)
SetId sets field value.
func (o *DashboardListItemResponse) SetType(v DashboardType)
SetType sets field value.
func (o *DashboardListItemResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListItems Dashboards within a list.
type DashboardListItems struct {
// List of dashboards in the dashboard list.
Dashboards []DashboardListItem `json:"dashboards"`
// Number of dashboards in the dashboard list.
Total *int64 `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListItems(dashboards []DashboardListItem) *DashboardListItems
NewDashboardListItems instantiates a new DashboardListItems object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListItemsWithDefaults() *DashboardListItems
NewDashboardListItemsWithDefaults instantiates a new DashboardListItems object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListItems) GetDashboards() []DashboardListItem
GetDashboards returns the Dashboards field value.
func (o *DashboardListItems) GetDashboardsOk() (*[]DashboardListItem, bool)
GetDashboardsOk returns a tuple with the Dashboards field value and a boolean to check if the value has been set.
func (o *DashboardListItems) GetTotal() int64
GetTotal returns the Total field value if set, zero value otherwise.
func (o *DashboardListItems) GetTotalOk() (*int64, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListItems) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o DashboardListItems) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListItems) SetDashboards(v []DashboardListItem)
SetDashboards sets field value.
func (o *DashboardListItems) SetTotal(v int64)
SetTotal gets a reference to the given int64 and assigns it to the Total field.
func (o *DashboardListItems) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListUpdateItemsRequest Request containing the list of dashboards to update to.
type DashboardListUpdateItemsRequest struct {
// List of dashboards to update the dashboard list to.
Dashboards []DashboardListItemRequest `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListUpdateItemsRequest() *DashboardListUpdateItemsRequest
NewDashboardListUpdateItemsRequest instantiates a new DashboardListUpdateItemsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListUpdateItemsRequestWithDefaults() *DashboardListUpdateItemsRequest
NewDashboardListUpdateItemsRequestWithDefaults instantiates a new DashboardListUpdateItemsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListUpdateItemsRequest) GetDashboards() []DashboardListItemRequest
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListUpdateItemsRequest) GetDashboardsOk() (*[]DashboardListItemRequest, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListUpdateItemsRequest) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListUpdateItemsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListUpdateItemsRequest) SetDashboards(v []DashboardListItemRequest)
SetDashboards gets a reference to the given []DashboardListItemRequest and assigns it to the Dashboards field.
func (o *DashboardListUpdateItemsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListUpdateItemsResponse Response containing a list of updated dashboards.
type DashboardListUpdateItemsResponse struct {
// List of dashboards in the dashboard list.
Dashboards []DashboardListItemResponse `json:"dashboards,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewDashboardListUpdateItemsResponse() *DashboardListUpdateItemsResponse
NewDashboardListUpdateItemsResponse instantiates a new DashboardListUpdateItemsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewDashboardListUpdateItemsResponseWithDefaults() *DashboardListUpdateItemsResponse
NewDashboardListUpdateItemsResponseWithDefaults instantiates a new DashboardListUpdateItemsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *DashboardListUpdateItemsResponse) GetDashboards() []DashboardListItemResponse
GetDashboards returns the Dashboards field value if set, zero value otherwise.
func (o *DashboardListUpdateItemsResponse) GetDashboardsOk() (*[]DashboardListItemResponse, bool)
GetDashboardsOk returns a tuple with the Dashboards field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *DashboardListUpdateItemsResponse) HasDashboards() bool
HasDashboards returns a boolean if a field has been set.
func (o DashboardListUpdateItemsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *DashboardListUpdateItemsResponse) SetDashboards(v []DashboardListItemResponse)
SetDashboards gets a reference to the given []DashboardListItemResponse and assigns it to the Dashboards field.
func (o *DashboardListUpdateItemsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
DashboardListsApi service type
type DashboardListsApi datadog.Service
func NewDashboardListsApi(client *datadog.APIClient) *DashboardListsApi
NewDashboardListsApi Returns NewDashboardListsApi.
func (a *DashboardListsApi) CreateDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListAddItemsRequest) (DashboardListAddItemsResponse, *_nethttp.Response, error)
CreateDashboardListItems Add Items to a Dashboard List. Add dashboards to an existing dashboard list.
func (a *DashboardListsApi) DeleteDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListDeleteItemsRequest) (DashboardListDeleteItemsResponse, *_nethttp.Response, error)
DeleteDashboardListItems Delete items from a dashboard list. Delete dashboards from an existing dashboard list.
func (a *DashboardListsApi) GetDashboardListItems(ctx _context.Context, dashboardListId int64) (DashboardListItems, *_nethttp.Response, error)
GetDashboardListItems Get items of a Dashboard List. Fetch the dashboard list’s dashboard definitions.
func (a *DashboardListsApi) UpdateDashboardListItems(ctx _context.Context, dashboardListId int64, body DashboardListUpdateItemsRequest) (DashboardListUpdateItemsResponse, *_nethttp.Response, error)
UpdateDashboardListItems Update items of a dashboard list. Update dashboards of an existing dashboard list.
DashboardType The type of the dashboard.
type DashboardType string
List of DashboardType.
const (
DASHBOARDTYPE_CUSTOM_TIMEBOARD DashboardType = "custom_timeboard"
DASHBOARDTYPE_CUSTOM_SCREENBOARD DashboardType = "custom_screenboard"
DASHBOARDTYPE_INTEGRATION_SCREENBOARD DashboardType = "integration_screenboard"
DASHBOARDTYPE_INTEGRATION_TIMEBOARD DashboardType = "integration_timeboard"
DASHBOARDTYPE_HOST_TIMEBOARD DashboardType = "host_timeboard"
)
func NewDashboardTypeFromValue(v string) (*DashboardType, error)
NewDashboardTypeFromValue returns a pointer to a valid DashboardType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *DashboardType) GetAllowedValues() []DashboardType
GetAllowedValues reeturns the list of possible values.
func (v DashboardType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v DashboardType) Ptr() *DashboardType
Ptr returns reference to DashboardType value.
func (v *DashboardType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EstimateMetricsOutputSeriesOptionalParameters holds optional parameters for EstimateMetricsOutputSeries.
type EstimateMetricsOutputSeriesOptionalParameters struct {
FilterGroups *string
FilterHoursAgo *int32
FilterNumAggregations *int32
FilterPct *bool
FilterTimespanH *int32
}
func NewEstimateMetricsOutputSeriesOptionalParameters() *EstimateMetricsOutputSeriesOptionalParameters
NewEstimateMetricsOutputSeriesOptionalParameters creates an empty struct for parameters.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterGroups(filterGroups string) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterGroups sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterHoursAgo(filterHoursAgo int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterHoursAgo sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterNumAggregations(filterNumAggregations int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterNumAggregations sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterPct(filterPct bool) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterPct sets the corresponding parameter name and returns the struct.
func (r *EstimateMetricsOutputSeriesOptionalParameters) WithFilterTimespanH(filterTimespanH int32) *EstimateMetricsOutputSeriesOptionalParameters
WithFilterTimespanH sets the corresponding parameter name and returns the struct.
Event The metadata associated with a request.
type Event struct {
// Event ID.
Id *string `json:"id,omitempty"`
// The event name.
Name *string `json:"name,omitempty"`
// Event source ID.
SourceId *int64 `json:"source_id,omitempty"`
// Event type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEvent() *Event
NewEvent instantiates a new Event object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventWithDefaults() *Event
NewEventWithDefaults instantiates a new Event object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Event) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Event) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *Event) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetSourceId() int64
GetSourceId returns the SourceId field value if set, zero value otherwise.
func (o *Event) GetSourceIdOk() (*int64, bool)
GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *Event) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Event) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Event) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Event) HasSourceId() bool
HasSourceId returns a boolean if a field has been set.
func (o *Event) HasType() bool
HasType returns a boolean if a field has been set.
func (o Event) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Event) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Event) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *Event) SetSourceId(v int64)
SetSourceId gets a reference to the given int64 and assigns it to the SourceId field.
func (o *Event) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *Event) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventAttributes Object description of attributes from your event.
type EventAttributes struct {
// Aggregation key of the event.
AggregationKey *string `json:"aggregation_key,omitempty"`
// POSIX timestamp of the event. Must be sent as an integer (no quotation marks).
// Limited to events no older than 18 hours.
DateHappened *int64 `json:"date_happened,omitempty"`
// A device name.
DeviceName *string `json:"device_name,omitempty"`
// The duration between the triggering of the event and its recovery in nanoseconds.
Duration *int64 `json:"duration,omitempty"`
// The event title.
EventObject *string `json:"event_object,omitempty"`
// The metadata associated with a request.
Evt *Event `json:"evt,omitempty"`
// Host name to associate with the event.
// Any tags associated with the host are also applied to this event.
Hostname *string `json:"hostname,omitempty"`
// Attributes from the monitor that triggered the event.
Monitor NullableMonitorType `json:"monitor,omitempty"`
// List of groups referred to in the event.
MonitorGroups []string `json:"monitor_groups,omitempty"`
// ID of the monitor that triggered the event. When an event isn't related to a monitor, this field is empty.
MonitorId datadog.NullableInt64 `json:"monitor_id,omitempty"`
// The priority of the event's monitor. For example, `normal` or `low`.
Priority NullableEventPriority `json:"priority,omitempty"`
// Related event ID.
RelatedEventId *int64 `json:"related_event_id,omitempty"`
// Service that triggered the event.
Service *string `json:"service,omitempty"`
// The type of event being posted.
// For example, `nagios`, `hudson`, `jenkins`, `my_apps`, `chef`, `puppet`, `git` or `bitbucket`.
// The list of standard source attribute values is [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
SourceTypeName *string `json:"source_type_name,omitempty"`
// Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration.
Sourcecategory *string `json:"sourcecategory,omitempty"`
// If an alert event is enabled, its status is one of the following:
// `failure`, `error`, `warning`, `info`, `success`, `user_update`,
// `recommendation`, or `snapshot`.
Status *EventStatusType `json:"status,omitempty"`
// A list of tags to apply to the event.
Tags []string `json:"tags,omitempty"`
// POSIX timestamp of your event in milliseconds.
Timestamp *int64 `json:"timestamp,omitempty"`
// The event title.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventAttributes() *EventAttributes
NewEventAttributes instantiates a new EventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventAttributesWithDefaults() *EventAttributes
NewEventAttributesWithDefaults instantiates a new EventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventAttributes) GetAggregationKey() string
GetAggregationKey returns the AggregationKey field value if set, zero value otherwise.
func (o *EventAttributes) GetAggregationKeyOk() (*string, bool)
GetAggregationKeyOk returns a tuple with the AggregationKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDateHappened() int64
GetDateHappened returns the DateHappened field value if set, zero value otherwise.
func (o *EventAttributes) GetDateHappenedOk() (*int64, bool)
GetDateHappenedOk returns a tuple with the DateHappened field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDeviceName() string
GetDeviceName returns the DeviceName field value if set, zero value otherwise.
func (o *EventAttributes) GetDeviceNameOk() (*string, bool)
GetDeviceNameOk returns a tuple with the DeviceName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetDuration() int64
GetDuration returns the Duration field value if set, zero value otherwise.
func (o *EventAttributes) GetDurationOk() (*int64, bool)
GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetEventObject() string
GetEventObject returns the EventObject field value if set, zero value otherwise.
func (o *EventAttributes) GetEventObjectOk() (*string, bool)
GetEventObjectOk returns a tuple with the EventObject field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetEvt() Event
GetEvt returns the Evt field value if set, zero value otherwise.
func (o *EventAttributes) GetEvtOk() (*Event, bool)
GetEvtOk returns a tuple with the Evt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetHostname() string
GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *EventAttributes) GetHostnameOk() (*string, bool)
GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetMonitor() MonitorType
GetMonitor returns the Monitor field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorGroups() []string
GetMonitorGroups returns the MonitorGroups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorGroupsOk() (*[]string, bool)
GetMonitorGroupsOk returns a tuple with the MonitorGroups field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetMonitorId() int64
GetMonitorId returns the MonitorId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetMonitorIdOk() (*int64, bool)
GetMonitorIdOk returns a tuple with the MonitorId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetMonitorOk() (*MonitorType, bool)
GetMonitorOk returns a tuple with the Monitor field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetPriority() EventPriority
GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EventAttributes) GetPriorityOk() (*EventPriority, bool)
GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *EventAttributes) GetRelatedEventId() int64
GetRelatedEventId returns the RelatedEventId field value if set, zero value otherwise.
func (o *EventAttributes) GetRelatedEventIdOk() (*int64, bool)
GetRelatedEventIdOk returns a tuple with the RelatedEventId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *EventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetSourceTypeName() string
GetSourceTypeName returns the SourceTypeName field value if set, zero value otherwise.
func (o *EventAttributes) GetSourceTypeNameOk() (*string, bool)
GetSourceTypeNameOk returns a tuple with the SourceTypeName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetSourcecategory() string
GetSourcecategory returns the Sourcecategory field value if set, zero value otherwise.
func (o *EventAttributes) GetSourcecategoryOk() (*string, bool)
GetSourcecategoryOk returns a tuple with the Sourcecategory field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetStatus() EventStatusType
GetStatus returns the Status field value if set, zero value otherwise.
func (o *EventAttributes) GetStatusOk() (*EventStatusType, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *EventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTimestamp() int64
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *EventAttributes) GetTimestampOk() (*int64, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *EventAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventAttributes) HasAggregationKey() bool
HasAggregationKey returns a boolean if a field has been set.
func (o *EventAttributes) HasDateHappened() bool
HasDateHappened returns a boolean if a field has been set.
func (o *EventAttributes) HasDeviceName() bool
HasDeviceName returns a boolean if a field has been set.
func (o *EventAttributes) HasDuration() bool
HasDuration returns a boolean if a field has been set.
func (o *EventAttributes) HasEventObject() bool
HasEventObject returns a boolean if a field has been set.
func (o *EventAttributes) HasEvt() bool
HasEvt returns a boolean if a field has been set.
func (o *EventAttributes) HasHostname() bool
HasHostname returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitor() bool
HasMonitor returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitorGroups() bool
HasMonitorGroups returns a boolean if a field has been set.
func (o *EventAttributes) HasMonitorId() bool
HasMonitorId returns a boolean if a field has been set.
func (o *EventAttributes) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *EventAttributes) HasRelatedEventId() bool
HasRelatedEventId returns a boolean if a field has been set.
func (o *EventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *EventAttributes) HasSourceTypeName() bool
HasSourceTypeName returns a boolean if a field has been set.
func (o *EventAttributes) HasSourcecategory() bool
HasSourcecategory returns a boolean if a field has been set.
func (o *EventAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *EventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *EventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *EventAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o EventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventAttributes) SetAggregationKey(v string)
SetAggregationKey gets a reference to the given string and assigns it to the AggregationKey field.
func (o *EventAttributes) SetDateHappened(v int64)
SetDateHappened gets a reference to the given int64 and assigns it to the DateHappened field.
func (o *EventAttributes) SetDeviceName(v string)
SetDeviceName gets a reference to the given string and assigns it to the DeviceName field.
func (o *EventAttributes) SetDuration(v int64)
SetDuration gets a reference to the given int64 and assigns it to the Duration field.
func (o *EventAttributes) SetEventObject(v string)
SetEventObject gets a reference to the given string and assigns it to the EventObject field.
func (o *EventAttributes) SetEvt(v Event)
SetEvt gets a reference to the given Event and assigns it to the Evt field.
func (o *EventAttributes) SetHostname(v string)
SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *EventAttributes) SetMonitor(v MonitorType)
SetMonitor gets a reference to the given NullableMonitorType and assigns it to the Monitor field.
func (o *EventAttributes) SetMonitorGroups(v []string)
SetMonitorGroups gets a reference to the given []string and assigns it to the MonitorGroups field.
func (o *EventAttributes) SetMonitorId(v int64)
SetMonitorId gets a reference to the given datadog.NullableInt64 and assigns it to the MonitorId field.
func (o *EventAttributes) SetMonitorIdNil()
SetMonitorIdNil sets the value for MonitorId to be an explicit nil.
func (o *EventAttributes) SetMonitorNil()
SetMonitorNil sets the value for Monitor to be an explicit nil.
func (o *EventAttributes) SetPriority(v EventPriority)
SetPriority gets a reference to the given NullableEventPriority and assigns it to the Priority field.
func (o *EventAttributes) SetPriorityNil()
SetPriorityNil sets the value for Priority to be an explicit nil.
func (o *EventAttributes) SetRelatedEventId(v int64)
SetRelatedEventId gets a reference to the given int64 and assigns it to the RelatedEventId field.
func (o *EventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *EventAttributes) SetSourceTypeName(v string)
SetSourceTypeName gets a reference to the given string and assigns it to the SourceTypeName field.
func (o *EventAttributes) SetSourcecategory(v string)
SetSourcecategory gets a reference to the given string and assigns it to the Sourcecategory field.
func (o *EventAttributes) SetStatus(v EventStatusType)
SetStatus gets a reference to the given EventStatusType and assigns it to the Status field.
func (o *EventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *EventAttributes) SetTimestamp(v int64)
SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.
func (o *EventAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *EventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *EventAttributes) UnsetMonitor()
UnsetMonitor ensures that no value is present for Monitor, not even an explicit nil.
func (o *EventAttributes) UnsetMonitorId()
UnsetMonitorId ensures that no value is present for MonitorId, not even an explicit nil.
func (o *EventAttributes) UnsetPriority()
UnsetPriority ensures that no value is present for Priority, not even an explicit nil.
EventPriority The priority of the event's monitor. For example, `normal` or `low`.
type EventPriority string
List of EventPriority.
const (
EVENTPRIORITY_NORMAL EventPriority = "normal"
EVENTPRIORITY_LOW EventPriority = "low"
)
func NewEventPriorityFromValue(v string) (*EventPriority, error)
NewEventPriorityFromValue returns a pointer to a valid EventPriority for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventPriority) GetAllowedValues() []EventPriority
GetAllowedValues reeturns the list of possible values.
func (v EventPriority) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventPriority) Ptr() *EventPriority
Ptr returns reference to EventPriority value.
func (v *EventPriority) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventResponse The object description of an event after being processed and stored by Datadog.
type EventResponse struct {
// The object description of an event response attribute.
Attributes *EventResponseAttributes `json:"attributes,omitempty"`
// the unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *EventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventResponse() *EventResponse
NewEventResponse instantiates a new EventResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventResponseWithDefaults() *EventResponse
NewEventResponseWithDefaults instantiates a new EventResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventResponse) GetAttributes() EventResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *EventResponse) GetAttributesOk() (*EventResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *EventResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) GetType() EventType
GetType returns the Type field value if set, zero value otherwise.
func (o *EventResponse) GetTypeOk() (*EventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponse) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *EventResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *EventResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o EventResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventResponse) SetAttributes(v EventResponseAttributes)
SetAttributes gets a reference to the given EventResponseAttributes and assigns it to the Attributes field.
func (o *EventResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *EventResponse) SetType(v EventType)
SetType gets a reference to the given EventType and assigns it to the Type field.
func (o *EventResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventResponseAttributes The object description of an event response attribute.
type EventResponseAttributes struct {
// Object description of attributes from your event.
Attributes *EventAttributes `json:"attributes,omitempty"`
// An array of tags associated with the event.
Tags []string `json:"tags,omitempty"`
// The timestamp of the event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventResponseAttributes() *EventResponseAttributes
NewEventResponseAttributes instantiates a new EventResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventResponseAttributesWithDefaults() *EventResponseAttributes
NewEventResponseAttributesWithDefaults instantiates a new EventResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventResponseAttributes) GetAttributes() EventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetAttributesOk() (*EventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *EventResponseAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventResponseAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *EventResponseAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *EventResponseAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o EventResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventResponseAttributes) SetAttributes(v EventAttributes)
SetAttributes gets a reference to the given EventAttributes and assigns it to the Attributes field.
func (o *EventResponseAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *EventResponseAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *EventResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventStatusType If an alert event is enabled, its status is one of the following: `failure`, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, or `snapshot`.
type EventStatusType string
List of EventStatusType.
const (
EVENTSTATUSTYPE_FAILURE EventStatusType = "failure"
EVENTSTATUSTYPE_ERROR EventStatusType = "error"
EVENTSTATUSTYPE_WARNING EventStatusType = "warning"
EVENTSTATUSTYPE_INFO EventStatusType = "info"
EVENTSTATUSTYPE_SUCCESS EventStatusType = "success"
EVENTSTATUSTYPE_USER_UPDATE EventStatusType = "user_update"
EVENTSTATUSTYPE_RECOMMENDATION EventStatusType = "recommendation"
EVENTSTATUSTYPE_SNAPSHOT EventStatusType = "snapshot"
)
func NewEventStatusTypeFromValue(v string) (*EventStatusType, error)
NewEventStatusTypeFromValue returns a pointer to a valid EventStatusType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventStatusType) GetAllowedValues() []EventStatusType
GetAllowedValues reeturns the list of possible values.
func (v EventStatusType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventStatusType) Ptr() *EventStatusType
Ptr returns reference to EventStatusType value.
func (v *EventStatusType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventType Type of the event.
type EventType string
List of EventType.
const (
EVENTTYPE_EVENT EventType = "event"
)
func NewEventTypeFromValue(v string) (*EventType, error)
NewEventTypeFromValue returns a pointer to a valid EventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventType) GetAllowedValues() []EventType
GetAllowedValues reeturns the list of possible values.
func (v EventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventType) Ptr() *EventType
Ptr returns reference to EventType value.
func (v *EventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsApi service type
type EventsApi datadog.Service
func NewEventsApi(client *datadog.APIClient) *EventsApi
NewEventsApi Returns NewEventsApi.
func (a *EventsApi) ListEvents(ctx _context.Context, o ...ListEventsOptionalParameters) (EventsListResponse, *_nethttp.Response, error)
ListEvents Get a list of events. List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to see your latest events.
func (a *EventsApi) ListEventsWithPagination(ctx _context.Context, o ...ListEventsOptionalParameters) (<-chan EventResponse, func(), error)
ListEventsWithPagination provides a paginated version of ListEvents returning a channel with all items.
func (a *EventsApi) SearchEvents(ctx _context.Context, o ...SearchEventsOptionalParameters) (EventsListResponse, *_nethttp.Response, error)
SearchEvents Search events. List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
Use this endpoint to build complex events filtering and search.
func (a *EventsApi) SearchEventsWithPagination(ctx _context.Context, o ...SearchEventsOptionalParameters) (<-chan EventResponse, func(), error)
SearchEventsWithPagination provides a paginated version of SearchEvents returning a channel with all items.
EventsListRequest The object sent with the request to retrieve a list of events from your organization.
type EventsListRequest struct {
// The search and filter query settings.
Filter *EventsQueryFilter `json:"filter,omitempty"`
// The global query options that are used. Either provide a timezone or a time offset but not both,
// otherwise the query fails.
Options *EventsQueryOptions `json:"options,omitempty"`
// Pagination settings.
Page *EventsRequestPage `json:"page,omitempty"`
// The sort parameters when querying events.
Sort *EventsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListRequest() *EventsListRequest
NewEventsListRequest instantiates a new EventsListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListRequestWithDefaults() *EventsListRequest
NewEventsListRequestWithDefaults instantiates a new EventsListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListRequest) GetFilter() EventsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *EventsListRequest) GetFilterOk() (*EventsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetOptions() EventsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *EventsListRequest) GetOptionsOk() (*EventsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetPage() EventsRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *EventsListRequest) GetPageOk() (*EventsRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) GetSort() EventsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *EventsListRequest) GetSortOk() (*EventsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *EventsListRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *EventsListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *EventsListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o EventsListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListRequest) SetFilter(v EventsQueryFilter)
SetFilter gets a reference to the given EventsQueryFilter and assigns it to the Filter field.
func (o *EventsListRequest) SetOptions(v EventsQueryOptions)
SetOptions gets a reference to the given EventsQueryOptions and assigns it to the Options field.
func (o *EventsListRequest) SetPage(v EventsRequestPage)
SetPage gets a reference to the given EventsRequestPage and assigns it to the Page field.
func (o *EventsListRequest) SetSort(v EventsSort)
SetSort gets a reference to the given EventsSort and assigns it to the Sort field.
func (o *EventsListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsListResponse The response object with all events matching the request and pagination information.
type EventsListResponse struct {
// An array of events matching the request.
Data []EventResponse `json:"data,omitempty"`
// Links attributes.
Links *EventsListResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *EventsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListResponse() *EventsListResponse
NewEventsListResponse instantiates a new EventsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListResponseWithDefaults() *EventsListResponse
NewEventsListResponseWithDefaults instantiates a new EventsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListResponse) GetData() []EventResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *EventsListResponse) GetDataOk() (*[]EventResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) GetLinks() EventsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *EventsListResponse) GetLinksOk() (*EventsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) GetMeta() EventsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *EventsListResponse) GetMetaOk() (*EventsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *EventsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *EventsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o EventsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListResponse) SetData(v []EventResponse)
SetData gets a reference to the given []EventResponse and assigns it to the Data field.
func (o *EventsListResponse) SetLinks(v EventsListResponseLinks)
SetLinks gets a reference to the given EventsListResponseLinks and assigns it to the Links field.
func (o *EventsListResponse) SetMeta(v EventsResponseMetadata)
SetMeta gets a reference to the given EventsResponseMetadata and assigns it to the Meta field.
func (o *EventsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsListResponseLinks Links attributes.
type EventsListResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsListResponseLinks() *EventsListResponseLinks
NewEventsListResponseLinks instantiates a new EventsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsListResponseLinksWithDefaults() *EventsListResponseLinks
NewEventsListResponseLinksWithDefaults instantiates a new EventsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *EventsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o EventsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *EventsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsQueryFilter The search and filter query settings.
type EventsQueryFilter struct {
// The minimum time for the requested events. Supports date math and regular timestamps in milliseconds.
From *string `json:"from,omitempty"`
// The search query following the event search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events. Supports date math and regular timestamps in milliseconds.
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsQueryFilter() *EventsQueryFilter
NewEventsQueryFilter instantiates a new EventsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsQueryFilterWithDefaults() *EventsQueryFilter
NewEventsQueryFilterWithDefaults instantiates a new EventsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *EventsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *EventsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *EventsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o EventsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *EventsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *EventsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *EventsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsQueryOptions The global query options that are used. Either provide a timezone or a time offset but not both, otherwise the query fails.
type EventsQueryOptions struct {
// The time offset to apply to the query in seconds.
TimeOffset *int64 `json:"timeOffset,omitempty"`
// The timezone can be specified as an offset, for example: `UTC+03:00`.
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsQueryOptions() *EventsQueryOptions
NewEventsQueryOptions instantiates a new EventsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsQueryOptionsWithDefaults() *EventsQueryOptions
NewEventsQueryOptionsWithDefaults instantiates a new EventsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *EventsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *EventsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *EventsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o EventsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *EventsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *EventsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsRequestPage Pagination settings.
type EventsRequestPage struct {
// The returned paging point to use to get the next results.
Cursor *string `json:"cursor,omitempty"`
// The maximum number of logs in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsRequestPage() *EventsRequestPage
NewEventsRequestPage instantiates a new EventsRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsRequestPageWithDefaults() *EventsRequestPage
NewEventsRequestPageWithDefaults instantiates a new EventsRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *EventsRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *EventsRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *EventsRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o EventsRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *EventsRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *EventsRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsResponseMetadata The metadata associated with a request.
type EventsResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Pagination attributes.
Page *EventsResponseMetadataPage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results might be returned if
// warnings are present in the response.
Warnings []EventsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsResponseMetadata() *EventsResponseMetadata
NewEventsResponseMetadata instantiates a new EventsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsResponseMetadataWithDefaults() *EventsResponseMetadata
NewEventsResponseMetadataWithDefaults instantiates a new EventsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetPage() EventsResponseMetadataPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetPageOk() (*EventsResponseMetadataPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) GetWarnings() []EventsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *EventsResponseMetadata) GetWarningsOk() (*[]EventsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *EventsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o EventsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *EventsResponseMetadata) SetPage(v EventsResponseMetadataPage)
SetPage gets a reference to the given EventsResponseMetadataPage and assigns it to the Page field.
func (o *EventsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *EventsResponseMetadata) SetWarnings(v []EventsWarning)
SetWarnings gets a reference to the given []EventsWarning and assigns it to the Warnings field.
func (o *EventsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsResponseMetadataPage Pagination attributes.
type EventsResponseMetadataPage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsResponseMetadataPage() *EventsResponseMetadataPage
NewEventsResponseMetadataPage instantiates a new EventsResponseMetadataPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsResponseMetadataPageWithDefaults() *EventsResponseMetadataPage
NewEventsResponseMetadataPageWithDefaults instantiates a new EventsResponseMetadataPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsResponseMetadataPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *EventsResponseMetadataPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsResponseMetadataPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o EventsResponseMetadataPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsResponseMetadataPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *EventsResponseMetadataPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
EventsSort The sort parameters when querying events.
type EventsSort string
List of EventsSort.
const (
EVENTSSORT_TIMESTAMP_ASCENDING EventsSort = "timestamp"
EVENTSSORT_TIMESTAMP_DESCENDING EventsSort = "-timestamp"
)
func NewEventsSortFromValue(v string) (*EventsSort, error)
NewEventsSortFromValue returns a pointer to a valid EventsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *EventsSort) GetAllowedValues() []EventsSort
GetAllowedValues reeturns the list of possible values.
func (v EventsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v EventsSort) Ptr() *EventsSort
Ptr returns reference to EventsSort value.
func (v *EventsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
EventsWarning A warning message indicating something is wrong with the query.
type EventsWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewEventsWarning() *EventsWarning
NewEventsWarning instantiates a new EventsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewEventsWarningWithDefaults() *EventsWarning
NewEventsWarningWithDefaults instantiates a new EventsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *EventsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *EventsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *EventsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *EventsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *EventsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *EventsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *EventsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o EventsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *EventsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *EventsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *EventsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *EventsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullAPIKey Datadog API key.
type FullAPIKey struct {
// Attributes of a full API key.
Attributes *FullAPIKeyAttributes `json:"attributes,omitempty"`
// ID of the API key.
Id *string `json:"id,omitempty"`
// Resources related to the API key.
Relationships *APIKeyRelationships `json:"relationships,omitempty"`
// API Keys resource type.
Type *APIKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullAPIKey() *FullAPIKey
NewFullAPIKey instantiates a new FullAPIKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullAPIKeyWithDefaults() *FullAPIKey
NewFullAPIKeyWithDefaults instantiates a new FullAPIKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullAPIKey) GetAttributes() FullAPIKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FullAPIKey) GetAttributesOk() (*FullAPIKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *FullAPIKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetRelationships() APIKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *FullAPIKey) GetRelationshipsOk() (*APIKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) GetType() APIKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *FullAPIKey) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *FullAPIKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FullAPIKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *FullAPIKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o FullAPIKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullAPIKey) SetAttributes(v FullAPIKeyAttributes)
SetAttributes gets a reference to the given FullAPIKeyAttributes and assigns it to the Attributes field.
func (o *FullAPIKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *FullAPIKey) SetRelationships(v APIKeyRelationships)
SetRelationships gets a reference to the given APIKeyRelationships and assigns it to the Relationships field.
func (o *FullAPIKey) SetType(v APIKeysType)
SetType gets a reference to the given APIKeysType and assigns it to the Type field.
func (o *FullAPIKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullAPIKeyAttributes Attributes of a full API key.
type FullAPIKeyAttributes struct {
// Creation date of the API key.
CreatedAt *string `json:"created_at,omitempty"`
// The API key.
Key *string `json:"key,omitempty"`
// The last four characters of the API key.
Last4 *string `json:"last4,omitempty"`
// Date the API key was last modified.
ModifiedAt *string `json:"modified_at,omitempty"`
// Name of the API key.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullAPIKeyAttributes() *FullAPIKeyAttributes
NewFullAPIKeyAttributes instantiates a new FullAPIKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullAPIKeyAttributesWithDefaults() *FullAPIKeyAttributes
NewFullAPIKeyAttributesWithDefaults instantiates a new FullAPIKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullAPIKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetKey() string
GetKey returns the Key field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetModifiedAt() string
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetModifiedAtOk() (*string, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *FullAPIKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullAPIKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *FullAPIKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o FullAPIKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullAPIKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *FullAPIKeyAttributes) SetKey(v string)
SetKey gets a reference to the given string and assigns it to the Key field.
func (o *FullAPIKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *FullAPIKeyAttributes) SetModifiedAt(v string)
SetModifiedAt gets a reference to the given string and assigns it to the ModifiedAt field.
func (o *FullAPIKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *FullAPIKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullApplicationKey Datadog application key.
type FullApplicationKey struct {
// Attributes of a full application key.
Attributes *FullApplicationKeyAttributes `json:"attributes,omitempty"`
// ID of the application key.
Id *string `json:"id,omitempty"`
// Resources related to the application key.
Relationships *ApplicationKeyRelationships `json:"relationships,omitempty"`
// Application Keys resource type.
Type *ApplicationKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullApplicationKey() *FullApplicationKey
NewFullApplicationKey instantiates a new FullApplicationKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullApplicationKeyWithDefaults() *FullApplicationKey
NewFullApplicationKeyWithDefaults instantiates a new FullApplicationKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullApplicationKey) GetAttributes() FullApplicationKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *FullApplicationKey) GetAttributesOk() (*FullApplicationKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *FullApplicationKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetRelationships() ApplicationKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *FullApplicationKey) GetRelationshipsOk() (*ApplicationKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) GetType() ApplicationKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *FullApplicationKey) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *FullApplicationKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *FullApplicationKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *FullApplicationKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o FullApplicationKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullApplicationKey) SetAttributes(v FullApplicationKeyAttributes)
SetAttributes gets a reference to the given FullApplicationKeyAttributes and assigns it to the Attributes field.
func (o *FullApplicationKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *FullApplicationKey) SetRelationships(v ApplicationKeyRelationships)
SetRelationships gets a reference to the given ApplicationKeyRelationships and assigns it to the Relationships field.
func (o *FullApplicationKey) SetType(v ApplicationKeysType)
SetType gets a reference to the given ApplicationKeysType and assigns it to the Type field.
func (o *FullApplicationKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
FullApplicationKeyAttributes Attributes of a full application key.
type FullApplicationKeyAttributes struct {
// Creation date of the application key.
CreatedAt *string `json:"created_at,omitempty"`
// The application key.
Key *string `json:"key,omitempty"`
// The last four characters of the application key.
Last4 *string `json:"last4,omitempty"`
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys.
Scopes []string `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewFullApplicationKeyAttributes() *FullApplicationKeyAttributes
NewFullApplicationKeyAttributes instantiates a new FullApplicationKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewFullApplicationKeyAttributesWithDefaults() *FullApplicationKeyAttributes
NewFullApplicationKeyAttributesWithDefaults instantiates a new FullApplicationKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *FullApplicationKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetKey() string
GetKey returns the Key field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *FullApplicationKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *FullApplicationKeyAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FullApplicationKeyAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *FullApplicationKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasKey() bool
HasKey returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *FullApplicationKeyAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o FullApplicationKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *FullApplicationKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *FullApplicationKeyAttributes) SetKey(v string)
SetKey gets a reference to the given string and assigns it to the Key field.
func (o *FullApplicationKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *FullApplicationKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *FullApplicationKeyAttributes) SetScopes(v []string)
SetScopes gets a reference to the given []string and assigns it to the Scopes field.
func (o *FullApplicationKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
GetAPIKeyOptionalParameters holds optional parameters for GetAPIKey.
type GetAPIKeyOptionalParameters struct {
Include *string
}
func NewGetAPIKeyOptionalParameters() *GetAPIKeyOptionalParameters
NewGetAPIKeyOptionalParameters creates an empty struct for parameters.
func (r *GetAPIKeyOptionalParameters) WithInclude(include string) *GetAPIKeyOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetApplicationKeyOptionalParameters holds optional parameters for GetApplicationKey.
type GetApplicationKeyOptionalParameters struct {
Include *string
}
func NewGetApplicationKeyOptionalParameters() *GetApplicationKeyOptionalParameters
NewGetApplicationKeyOptionalParameters creates an empty struct for parameters.
func (r *GetApplicationKeyOptionalParameters) WithInclude(include string) *GetApplicationKeyOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetCostByOrgOptionalParameters holds optional parameters for GetCostByOrg.
type GetCostByOrgOptionalParameters struct {
EndMonth *time.Time
}
func NewGetCostByOrgOptionalParameters() *GetCostByOrgOptionalParameters
NewGetCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
GetEstimatedCostByOrgOptionalParameters holds optional parameters for GetEstimatedCostByOrg.
type GetEstimatedCostByOrgOptionalParameters struct {
View *string
StartMonth *time.Time
EndMonth *time.Time
StartDate *time.Time
EndDate *time.Time
}
func NewGetEstimatedCostByOrgOptionalParameters() *GetEstimatedCostByOrgOptionalParameters
NewGetEstimatedCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetEstimatedCostByOrgOptionalParameters) WithEndDate(endDate time.Time) *GetEstimatedCostByOrgOptionalParameters
WithEndDate sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetEstimatedCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithStartDate(startDate time.Time) *GetEstimatedCostByOrgOptionalParameters
WithStartDate sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithStartMonth(startMonth time.Time) *GetEstimatedCostByOrgOptionalParameters
WithStartMonth sets the corresponding parameter name and returns the struct.
func (r *GetEstimatedCostByOrgOptionalParameters) WithView(view string) *GetEstimatedCostByOrgOptionalParameters
WithView sets the corresponding parameter name and returns the struct.
GetHistoricalCostByOrgOptionalParameters holds optional parameters for GetHistoricalCostByOrg.
type GetHistoricalCostByOrgOptionalParameters struct {
View *string
EndMonth *time.Time
}
func NewGetHistoricalCostByOrgOptionalParameters() *GetHistoricalCostByOrgOptionalParameters
NewGetHistoricalCostByOrgOptionalParameters creates an empty struct for parameters.
func (r *GetHistoricalCostByOrgOptionalParameters) WithEndMonth(endMonth time.Time) *GetHistoricalCostByOrgOptionalParameters
WithEndMonth sets the corresponding parameter name and returns the struct.
func (r *GetHistoricalCostByOrgOptionalParameters) WithView(view string) *GetHistoricalCostByOrgOptionalParameters
WithView sets the corresponding parameter name and returns the struct.
GetHourlyUsageOptionalParameters holds optional parameters for GetHourlyUsage.
type GetHourlyUsageOptionalParameters struct {
FilterTimestampEnd *time.Time
FilterIncludeDescendants *bool
FilterVersions *string
PageLimit *int32
PageNextRecordId *string
}
func NewGetHourlyUsageOptionalParameters() *GetHourlyUsageOptionalParameters
NewGetHourlyUsageOptionalParameters creates an empty struct for parameters.
func (r *GetHourlyUsageOptionalParameters) WithFilterIncludeDescendants(filterIncludeDescendants bool) *GetHourlyUsageOptionalParameters
WithFilterIncludeDescendants sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithFilterTimestampEnd(filterTimestampEnd time.Time) *GetHourlyUsageOptionalParameters
WithFilterTimestampEnd sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithFilterVersions(filterVersions string) *GetHourlyUsageOptionalParameters
WithFilterVersions sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithPageLimit(pageLimit int32) *GetHourlyUsageOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *GetHourlyUsageOptionalParameters) WithPageNextRecordId(pageNextRecordId string) *GetHourlyUsageOptionalParameters
WithPageNextRecordId sets the corresponding parameter name and returns the struct.
GetIncidentOptionalParameters holds optional parameters for GetIncident.
type GetIncidentOptionalParameters struct {
Include *[]IncidentRelatedObject
}
func NewGetIncidentOptionalParameters() *GetIncidentOptionalParameters
NewGetIncidentOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentOptionalParameters) WithInclude(include []IncidentRelatedObject) *GetIncidentOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetIncidentServiceOptionalParameters holds optional parameters for GetIncidentService.
type GetIncidentServiceOptionalParameters struct {
Include *IncidentRelatedObject
}
func NewGetIncidentServiceOptionalParameters() *GetIncidentServiceOptionalParameters
NewGetIncidentServiceOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentServiceOptionalParameters) WithInclude(include IncidentRelatedObject) *GetIncidentServiceOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetIncidentTeamOptionalParameters holds optional parameters for GetIncidentTeam.
type GetIncidentTeamOptionalParameters struct {
Include *IncidentRelatedObject
}
func NewGetIncidentTeamOptionalParameters() *GetIncidentTeamOptionalParameters
NewGetIncidentTeamOptionalParameters creates an empty struct for parameters.
func (r *GetIncidentTeamOptionalParameters) WithInclude(include IncidentRelatedObject) *GetIncidentTeamOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
GetUsageApplicationSecurityMonitoringOptionalParameters holds optional parameters for GetUsageApplicationSecurityMonitoring.
type GetUsageApplicationSecurityMonitoringOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageApplicationSecurityMonitoringOptionalParameters() *GetUsageApplicationSecurityMonitoringOptionalParameters
NewGetUsageApplicationSecurityMonitoringOptionalParameters creates an empty struct for parameters.
func (r *GetUsageApplicationSecurityMonitoringOptionalParameters) WithEndHr(endHr time.Time) *GetUsageApplicationSecurityMonitoringOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
GetUsageLambdaTracedInvocationsOptionalParameters holds optional parameters for GetUsageLambdaTracedInvocations.
type GetUsageLambdaTracedInvocationsOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageLambdaTracedInvocationsOptionalParameters() *GetUsageLambdaTracedInvocationsOptionalParameters
NewGetUsageLambdaTracedInvocationsOptionalParameters creates an empty struct for parameters.
func (r *GetUsageLambdaTracedInvocationsOptionalParameters) WithEndHr(endHr time.Time) *GetUsageLambdaTracedInvocationsOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
GetUsageObservabilityPipelinesOptionalParameters holds optional parameters for GetUsageObservabilityPipelines.
type GetUsageObservabilityPipelinesOptionalParameters struct {
EndHr *time.Time
}
func NewGetUsageObservabilityPipelinesOptionalParameters() *GetUsageObservabilityPipelinesOptionalParameters
NewGetUsageObservabilityPipelinesOptionalParameters creates an empty struct for parameters.
func (r *GetUsageObservabilityPipelinesOptionalParameters) WithEndHr(endHr time.Time) *GetUsageObservabilityPipelinesOptionalParameters
WithEndHr sets the corresponding parameter name and returns the struct.
HTTPLogError List of errors.
type HTTPLogError struct {
// Error message.
Detail *string `json:"detail,omitempty"`
// Error code.
Status *string `json:"status,omitempty"`
// Error title.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPLogError() *HTTPLogError
NewHTTPLogError instantiates a new HTTPLogError object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogErrorWithDefaults() *HTTPLogError
NewHTTPLogErrorWithDefaults instantiates a new HTTPLogError object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogError) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *HTTPLogError) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *HTTPLogError) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *HTTPLogError) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogError) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *HTTPLogError) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *HTTPLogError) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o HTTPLogError) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogError) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *HTTPLogError) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *HTTPLogError) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *HTTPLogError) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPLogErrors Invalid query performed.
type HTTPLogErrors struct {
// Structured errors.
Errors []HTTPLogError `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHTTPLogErrors() *HTTPLogErrors
NewHTTPLogErrors instantiates a new HTTPLogErrors object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogErrorsWithDefaults() *HTTPLogErrors
NewHTTPLogErrorsWithDefaults instantiates a new HTTPLogErrors object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogErrors) GetErrors() []HTTPLogError
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *HTTPLogErrors) GetErrorsOk() (*[]HTTPLogError, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogErrors) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o HTTPLogErrors) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogErrors) SetErrors(v []HTTPLogError)
SetErrors gets a reference to the given []HTTPLogError and assigns it to the Errors field.
func (o *HTTPLogErrors) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HTTPLogItem Logs that are sent over HTTP.
type HTTPLogItem struct {
// The integration name associated with your log: the technology from which the log originated.
// When it matches an integration name, Datadog automatically installs the corresponding parsers and facets.
// See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes).
Ddsource *string `json:"ddsource,omitempty"`
// Tags associated with your logs.
Ddtags *string `json:"ddtags,omitempty"`
// The name of the originating host of the log.
Hostname *string `json:"hostname,omitempty"`
// The message [reserved attribute](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes)
// of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry.
// That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.
Message string `json:"message"`
// The name of the application or service generating the log events.
// It is used to switch from Logs to APM, so make sure you define the same value when you use both products.
// See [reserved attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes).
Service *string `json:"service,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]string
}
func NewHTTPLogItem(message string) *HTTPLogItem
NewHTTPLogItem instantiates a new HTTPLogItem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHTTPLogItemWithDefaults() *HTTPLogItem
NewHTTPLogItemWithDefaults instantiates a new HTTPLogItem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HTTPLogItem) GetDdsource() string
GetDdsource returns the Ddsource field value if set, zero value otherwise.
func (o *HTTPLogItem) GetDdsourceOk() (*string, bool)
GetDdsourceOk returns a tuple with the Ddsource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetDdtags() string
GetDdtags returns the Ddtags field value if set, zero value otherwise.
func (o *HTTPLogItem) GetDdtagsOk() (*string, bool)
GetDdtagsOk returns a tuple with the Ddtags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetHostname() string
GetHostname returns the Hostname field value if set, zero value otherwise.
func (o *HTTPLogItem) GetHostnameOk() (*string, bool)
GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetMessage() string
GetMessage returns the Message field value.
func (o *HTTPLogItem) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *HTTPLogItem) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *HTTPLogItem) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HTTPLogItem) HasDdsource() bool
HasDdsource returns a boolean if a field has been set.
func (o *HTTPLogItem) HasDdtags() bool
HasDdtags returns a boolean if a field has been set.
func (o *HTTPLogItem) HasHostname() bool
HasHostname returns a boolean if a field has been set.
func (o *HTTPLogItem) HasService() bool
HasService returns a boolean if a field has been set.
func (o HTTPLogItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HTTPLogItem) SetDdsource(v string)
SetDdsource gets a reference to the given string and assigns it to the Ddsource field.
func (o *HTTPLogItem) SetDdtags(v string)
SetDdtags gets a reference to the given string and assigns it to the Ddtags field.
func (o *HTTPLogItem) SetHostname(v string)
SetHostname gets a reference to the given string and assigns it to the Hostname field.
func (o *HTTPLogItem) SetMessage(v string)
SetMessage sets field value.
func (o *HTTPLogItem) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *HTTPLogItem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsage Hourly usage for a product family for an org.
type HourlyUsage struct {
// Attributes of hourly usage for a product family for an org for a time period.
Attributes *HourlyUsageAttributes `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of usage data.
Type *UsageTimeSeriesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsage() *HourlyUsage
NewHourlyUsage instantiates a new HourlyUsage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageWithDefaults() *HourlyUsage
NewHourlyUsageWithDefaults instantiates a new HourlyUsage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsage) GetAttributes() HourlyUsageAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *HourlyUsage) GetAttributesOk() (*HourlyUsageAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *HourlyUsage) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) GetType() UsageTimeSeriesType
GetType returns the Type field value if set, zero value otherwise.
func (o *HourlyUsage) GetTypeOk() (*UsageTimeSeriesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsage) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *HourlyUsage) HasId() bool
HasId returns a boolean if a field has been set.
func (o *HourlyUsage) HasType() bool
HasType returns a boolean if a field has been set.
func (o HourlyUsage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsage) SetAttributes(v HourlyUsageAttributes)
SetAttributes gets a reference to the given HourlyUsageAttributes and assigns it to the Attributes field.
func (o *HourlyUsage) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *HourlyUsage) SetType(v UsageTimeSeriesType)
SetType gets a reference to the given UsageTimeSeriesType and assigns it to the Type field.
func (o *HourlyUsage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageAttributes Attributes of hourly usage for a product family for an org for a time period.
type HourlyUsageAttributes struct {
// List of the measured usage values for the product family for the org for the time period.
Measurements []HourlyUsageMeasurement `json:"measurements,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The product for which usage is being reported.
ProductFamily *string `json:"product_family,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// The region of the Datadog instance that the organization belongs to.
Region *string `json:"region,omitempty"`
// Datetime in ISO-8601 format, UTC. The hour for the usage.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageAttributes() *HourlyUsageAttributes
NewHourlyUsageAttributes instantiates a new HourlyUsageAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageAttributesWithDefaults() *HourlyUsageAttributes
NewHourlyUsageAttributesWithDefaults instantiates a new HourlyUsageAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageAttributes) GetMeasurements() []HourlyUsageMeasurement
GetMeasurements returns the Measurements field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetMeasurementsOk() (*[]HourlyUsageMeasurement, bool)
GetMeasurementsOk returns a tuple with the Measurements field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetProductFamily() string
GetProductFamily returns the ProductFamily field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetProductFamilyOk() (*string, bool)
GetProductFamilyOk returns a tuple with the ProductFamily field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *HourlyUsageAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageAttributes) HasMeasurements() bool
HasMeasurements returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasProductFamily() bool
HasProductFamily returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o *HourlyUsageAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o HourlyUsageAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageAttributes) SetMeasurements(v []HourlyUsageMeasurement)
SetMeasurements gets a reference to the given []HourlyUsageMeasurement and assigns it to the Measurements field.
func (o *HourlyUsageAttributes) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *HourlyUsageAttributes) SetProductFamily(v string)
SetProductFamily gets a reference to the given string and assigns it to the ProductFamily field.
func (o *HourlyUsageAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *HourlyUsageAttributes) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *HourlyUsageAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *HourlyUsageAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageMeasurement Usage amount for a given usage type.
type HourlyUsageMeasurement struct {
// Type of usage.
UsageType *string `json:"usage_type,omitempty"`
// Contains the number measured for the given usage_type during the hour.
Value datadog.NullableInt64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageMeasurement() *HourlyUsageMeasurement
NewHourlyUsageMeasurement instantiates a new HourlyUsageMeasurement object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageMeasurementWithDefaults() *HourlyUsageMeasurement
NewHourlyUsageMeasurementWithDefaults instantiates a new HourlyUsageMeasurement object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageMeasurement) GetUsageType() string
GetUsageType returns the UsageType field value if set, zero value otherwise.
func (o *HourlyUsageMeasurement) GetUsageTypeOk() (*string, bool)
GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageMeasurement) GetValue() int64
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HourlyUsageMeasurement) GetValueOk() (*int64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *HourlyUsageMeasurement) HasUsageType() bool
HasUsageType returns a boolean if a field has been set.
func (o *HourlyUsageMeasurement) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o HourlyUsageMeasurement) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageMeasurement) SetUsageType(v string)
SetUsageType gets a reference to the given string and assigns it to the UsageType field.
func (o *HourlyUsageMeasurement) SetValue(v int64)
SetValue gets a reference to the given datadog.NullableInt64 and assigns it to the Value field.
func (o *HourlyUsageMeasurement) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *HourlyUsageMeasurement) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *HourlyUsageMeasurement) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
HourlyUsageMetadata The object containing document metadata.
type HourlyUsageMetadata struct {
// The metadata for the current pagination.
Pagination *HourlyUsagePagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageMetadata() *HourlyUsageMetadata
NewHourlyUsageMetadata instantiates a new HourlyUsageMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageMetadataWithDefaults() *HourlyUsageMetadata
NewHourlyUsageMetadataWithDefaults instantiates a new HourlyUsageMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageMetadata) GetPagination() HourlyUsagePagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *HourlyUsageMetadata) GetPaginationOk() (*HourlyUsagePagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageMetadata) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o HourlyUsageMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageMetadata) SetPagination(v HourlyUsagePagination)
SetPagination gets a reference to the given HourlyUsagePagination and assigns it to the Pagination field.
func (o *HourlyUsageMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsagePagination The metadata for the current pagination.
type HourlyUsagePagination struct {
// The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`.
NextRecordId datadog.NullableString `json:"next_record_id,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsagePagination() *HourlyUsagePagination
NewHourlyUsagePagination instantiates a new HourlyUsagePagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsagePaginationWithDefaults() *HourlyUsagePagination
NewHourlyUsagePaginationWithDefaults instantiates a new HourlyUsagePagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsagePagination) GetNextRecordId() string
GetNextRecordId returns the NextRecordId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HourlyUsagePagination) GetNextRecordIdOk() (*string, bool)
GetNextRecordIdOk returns a tuple with the NextRecordId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *HourlyUsagePagination) HasNextRecordId() bool
HasNextRecordId returns a boolean if a field has been set.
func (o HourlyUsagePagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsagePagination) SetNextRecordId(v string)
SetNextRecordId gets a reference to the given datadog.NullableString and assigns it to the NextRecordId field.
func (o *HourlyUsagePagination) SetNextRecordIdNil()
SetNextRecordIdNil sets the value for NextRecordId to be an explicit nil.
func (o *HourlyUsagePagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *HourlyUsagePagination) UnsetNextRecordId()
UnsetNextRecordId ensures that no value is present for NextRecordId, not even an explicit nil.
HourlyUsageResponse Hourly usage response.
type HourlyUsageResponse struct {
// Response containing hourly usage.
Data []HourlyUsage `json:"data,omitempty"`
// The object containing document metadata.
Meta *HourlyUsageMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewHourlyUsageResponse() *HourlyUsageResponse
NewHourlyUsageResponse instantiates a new HourlyUsageResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewHourlyUsageResponseWithDefaults() *HourlyUsageResponse
NewHourlyUsageResponseWithDefaults instantiates a new HourlyUsageResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *HourlyUsageResponse) GetData() []HourlyUsage
GetData returns the Data field value if set, zero value otherwise.
func (o *HourlyUsageResponse) GetDataOk() (*[]HourlyUsage, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageResponse) GetMeta() HourlyUsageMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *HourlyUsageResponse) GetMetaOk() (*HourlyUsageMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *HourlyUsageResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *HourlyUsageResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o HourlyUsageResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *HourlyUsageResponse) SetData(v []HourlyUsage)
SetData gets a reference to the given []HourlyUsage and assigns it to the Data field.
func (o *HourlyUsageResponse) SetMeta(v HourlyUsageMetadata)
SetMeta gets a reference to the given HourlyUsageMetadata and assigns it to the Meta field.
func (o *HourlyUsageResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
HourlyUsageType Usage type that is being measured.
type HourlyUsageType string
List of HourlyUsageType.
const (
HOURLYUSAGETYPE_APP_SEC_HOST_COUNT HourlyUsageType = "app_sec_host_count"
HOURLYUSAGETYPE_OBSERVABILITY_PIPELINES_BYTES_PROCESSSED HourlyUsageType = "observability_pipelines_bytes_processed"
HOURLYUSAGETYPE_LAMBDA_TRACED_INVOCATIONS_COUNT HourlyUsageType = "lambda_traced_invocations_count"
)
func NewHourlyUsageTypeFromValue(v string) (*HourlyUsageType, error)
NewHourlyUsageTypeFromValue returns a pointer to a valid HourlyUsageType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *HourlyUsageType) GetAllowedValues() []HourlyUsageType
GetAllowedValues reeturns the list of possible values.
func (v HourlyUsageType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v HourlyUsageType) Ptr() *HourlyUsageType
Ptr returns reference to HourlyUsageType value.
func (v *HourlyUsageType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IdPMetadataFormData The form data submitted to upload IdP metadata
type IdPMetadataFormData struct {
// The IdP metadata XML file
IdpFile **os.File `json:"idp_file,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIdPMetadataFormData() *IdPMetadataFormData
NewIdPMetadataFormData instantiates a new IdPMetadataFormData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIdPMetadataFormDataWithDefaults() *IdPMetadataFormData
NewIdPMetadataFormDataWithDefaults instantiates a new IdPMetadataFormData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IdPMetadataFormData) GetIdpFile() *os.File
GetIdpFile returns the IdpFile field value if set, zero value otherwise.
func (o *IdPMetadataFormData) GetIdpFileOk() (**os.File, bool)
GetIdpFileOk returns a tuple with the IdpFile field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IdPMetadataFormData) HasIdpFile() bool
HasIdpFile returns a boolean if a field has been set.
func (o IdPMetadataFormData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IdPMetadataFormData) SetIdpFile(v *os.File)
SetIdpFile gets a reference to the given *os.File and assigns it to the IdpFile field.
func (o *IdPMetadataFormData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentAttachmentType The type of the incident attachment attributes.
type IncidentAttachmentAttachmentType string
List of IncidentAttachmentAttachmentType.
const (
INCIDENTATTACHMENTATTACHMENTTYPE_LINK IncidentAttachmentAttachmentType = "link"
INCIDENTATTACHMENTATTACHMENTTYPE_POSTMORTEM IncidentAttachmentAttachmentType = "postmortem"
)
func NewIncidentAttachmentAttachmentTypeFromValue(v string) (*IncidentAttachmentAttachmentType, error)
NewIncidentAttachmentAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentAttachmentType) GetAllowedValues() []IncidentAttachmentAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentAttachmentType) Ptr() *IncidentAttachmentAttachmentType
Ptr returns reference to IncidentAttachmentAttachmentType value.
func (v *IncidentAttachmentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentAttributes - The attributes object for an attachment.
type IncidentAttachmentAttributes struct {
IncidentAttachmentPostmortemAttributes *IncidentAttachmentPostmortemAttributes
IncidentAttachmentLinkAttributes *IncidentAttachmentLinkAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentLinkAttributesAsIncidentAttachmentAttributes(v *IncidentAttachmentLinkAttributes) IncidentAttachmentAttributes
IncidentAttachmentLinkAttributesAsIncidentAttachmentAttributes is a convenience function that returns IncidentAttachmentLinkAttributes wrapped in IncidentAttachmentAttributes.
func IncidentAttachmentPostmortemAttributesAsIncidentAttachmentAttributes(v *IncidentAttachmentPostmortemAttributes) IncidentAttachmentAttributes
IncidentAttachmentPostmortemAttributesAsIncidentAttachmentAttributes is a convenience function that returns IncidentAttachmentPostmortemAttributes wrapped in IncidentAttachmentAttributes.
func (obj *IncidentAttachmentAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentAttachmentData A single incident attachment.
type IncidentAttachmentData struct {
// The attributes object for an attachment.
Attributes IncidentAttachmentAttributes `json:"attributes"`
// A unique identifier that represents the incident attachment.
Id string `json:"id"`
// The incident attachment's relationships.
Relationships IncidentAttachmentRelationships `json:"relationships"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentData(attributes IncidentAttachmentAttributes, id string, relationships IncidentAttachmentRelationships, typeVar IncidentAttachmentType) *IncidentAttachmentData
NewIncidentAttachmentData instantiates a new IncidentAttachmentData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentDataWithDefaults() *IncidentAttachmentData
NewIncidentAttachmentDataWithDefaults instantiates a new IncidentAttachmentData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentData) GetAttributes() IncidentAttachmentAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentAttachmentData) GetAttributesOk() (*IncidentAttachmentAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetId() string
GetId returns the Id field value.
func (o *IncidentAttachmentData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetRelationships() IncidentAttachmentRelationships
GetRelationships returns the Relationships field value.
func (o *IncidentAttachmentData) GetRelationshipsOk() (*IncidentAttachmentRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *IncidentAttachmentData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o IncidentAttachmentData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentData) SetAttributes(v IncidentAttachmentAttributes)
SetAttributes sets field value.
func (o *IncidentAttachmentData) SetId(v string)
SetId sets field value.
func (o *IncidentAttachmentData) SetRelationships(v IncidentAttachmentRelationships)
SetRelationships sets field value.
func (o *IncidentAttachmentData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *IncidentAttachmentData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttachmentType The type of link attachment attributes.
type IncidentAttachmentLinkAttachmentType string
List of IncidentAttachmentLinkAttachmentType.
const (
INCIDENTATTACHMENTLINKATTACHMENTTYPE_LINK IncidentAttachmentLinkAttachmentType = "link"
)
func NewIncidentAttachmentLinkAttachmentTypeFromValue(v string) (*IncidentAttachmentLinkAttachmentType, error)
NewIncidentAttachmentLinkAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentLinkAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentLinkAttachmentType) GetAllowedValues() []IncidentAttachmentLinkAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentLinkAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentLinkAttachmentType) Ptr() *IncidentAttachmentLinkAttachmentType
Ptr returns reference to IncidentAttachmentLinkAttachmentType value.
func (v *IncidentAttachmentLinkAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttributes The attributes object for a link attachment.
type IncidentAttachmentLinkAttributes struct {
// The link attachment.
Attachment IncidentAttachmentLinkAttributesAttachmentObject `json:"attachment"`
// The type of link attachment attributes.
AttachmentType IncidentAttachmentLinkAttachmentType `json:"attachment_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentLinkAttributes(attachment IncidentAttachmentLinkAttributesAttachmentObject, attachmentType IncidentAttachmentLinkAttachmentType) *IncidentAttachmentLinkAttributes
NewIncidentAttachmentLinkAttributes instantiates a new IncidentAttachmentLinkAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentLinkAttributesWithDefaults() *IncidentAttachmentLinkAttributes
NewIncidentAttachmentLinkAttributesWithDefaults instantiates a new IncidentAttachmentLinkAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentLinkAttributes) GetAttachment() IncidentAttachmentLinkAttributesAttachmentObject
GetAttachment returns the Attachment field value.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentOk() (*IncidentAttachmentLinkAttributesAttachmentObject, bool)
GetAttachmentOk returns a tuple with the Attachment field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentType() IncidentAttachmentLinkAttachmentType
GetAttachmentType returns the AttachmentType field value.
func (o *IncidentAttachmentLinkAttributes) GetAttachmentTypeOk() (*IncidentAttachmentLinkAttachmentType, bool)
GetAttachmentTypeOk returns a tuple with the AttachmentType field value and a boolean to check if the value has been set.
func (o IncidentAttachmentLinkAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentLinkAttributes) SetAttachment(v IncidentAttachmentLinkAttributesAttachmentObject)
SetAttachment sets field value.
func (o *IncidentAttachmentLinkAttributes) SetAttachmentType(v IncidentAttachmentLinkAttachmentType)
SetAttachmentType sets field value.
func (o *IncidentAttachmentLinkAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentLinkAttributesAttachmentObject The link attachment.
type IncidentAttachmentLinkAttributesAttachmentObject struct {
// The URL of this link attachment.
DocumentUrl string `json:"documentUrl"`
// The title of this link attachment.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentLinkAttributesAttachmentObject(documentUrl string, title string) *IncidentAttachmentLinkAttributesAttachmentObject
NewIncidentAttachmentLinkAttributesAttachmentObject instantiates a new IncidentAttachmentLinkAttributesAttachmentObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentLinkAttributesAttachmentObjectWithDefaults() *IncidentAttachmentLinkAttributesAttachmentObject
NewIncidentAttachmentLinkAttributesAttachmentObjectWithDefaults instantiates a new IncidentAttachmentLinkAttributesAttachmentObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetDocumentUrl() string
GetDocumentUrl returns the DocumentUrl field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetDocumentUrlOk() (*string, bool)
GetDocumentUrlOk returns a tuple with the DocumentUrl field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o IncidentAttachmentLinkAttributesAttachmentObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) SetDocumentUrl(v string)
SetDocumentUrl sets field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentAttachmentLinkAttributesAttachmentObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentPostmortemAttachmentType The type of postmortem attachment attributes.
type IncidentAttachmentPostmortemAttachmentType string
List of IncidentAttachmentPostmortemAttachmentType.
const (
INCIDENTATTACHMENTPOSTMORTEMATTACHMENTTYPE_POSTMORTEM IncidentAttachmentPostmortemAttachmentType = "postmortem"
)
func NewIncidentAttachmentPostmortemAttachmentTypeFromValue(v string) (*IncidentAttachmentPostmortemAttachmentType, error)
NewIncidentAttachmentPostmortemAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentPostmortemAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentPostmortemAttachmentType) GetAllowedValues() []IncidentAttachmentPostmortemAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentPostmortemAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentPostmortemAttachmentType) Ptr() *IncidentAttachmentPostmortemAttachmentType
Ptr returns reference to IncidentAttachmentPostmortemAttachmentType value.
func (v *IncidentAttachmentPostmortemAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentPostmortemAttributes The attributes object for a postmortem attachment.
type IncidentAttachmentPostmortemAttributes struct {
// The postmortem attachment.
Attachment IncidentAttachmentsPostmortemAttributesAttachmentObject `json:"attachment"`
// The type of postmortem attachment attributes.
AttachmentType IncidentAttachmentPostmortemAttachmentType `json:"attachment_type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentPostmortemAttributes(attachment IncidentAttachmentsPostmortemAttributesAttachmentObject, attachmentType IncidentAttachmentPostmortemAttachmentType) *IncidentAttachmentPostmortemAttributes
NewIncidentAttachmentPostmortemAttributes instantiates a new IncidentAttachmentPostmortemAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentPostmortemAttributesWithDefaults() *IncidentAttachmentPostmortemAttributes
NewIncidentAttachmentPostmortemAttributesWithDefaults instantiates a new IncidentAttachmentPostmortemAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachment() IncidentAttachmentsPostmortemAttributesAttachmentObject
GetAttachment returns the Attachment field value.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentOk() (*IncidentAttachmentsPostmortemAttributesAttachmentObject, bool)
GetAttachmentOk returns a tuple with the Attachment field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentType() IncidentAttachmentPostmortemAttachmentType
GetAttachmentType returns the AttachmentType field value.
func (o *IncidentAttachmentPostmortemAttributes) GetAttachmentTypeOk() (*IncidentAttachmentPostmortemAttachmentType, bool)
GetAttachmentTypeOk returns a tuple with the AttachmentType field value and a boolean to check if the value has been set.
func (o IncidentAttachmentPostmortemAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentPostmortemAttributes) SetAttachment(v IncidentAttachmentsPostmortemAttributesAttachmentObject)
SetAttachment sets field value.
func (o *IncidentAttachmentPostmortemAttributes) SetAttachmentType(v IncidentAttachmentPostmortemAttachmentType)
SetAttachmentType sets field value.
func (o *IncidentAttachmentPostmortemAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentRelatedObject The object related to an incident attachment.
type IncidentAttachmentRelatedObject string
List of IncidentAttachmentRelatedObject.
const (
INCIDENTATTACHMENTRELATEDOBJECT_USERS IncidentAttachmentRelatedObject = "users"
)
func NewIncidentAttachmentRelatedObjectFromValue(v string) (*IncidentAttachmentRelatedObject, error)
NewIncidentAttachmentRelatedObjectFromValue returns a pointer to a valid IncidentAttachmentRelatedObject for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentRelatedObject) GetAllowedValues() []IncidentAttachmentRelatedObject
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentRelatedObject) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentRelatedObject) Ptr() *IncidentAttachmentRelatedObject
Ptr returns reference to IncidentAttachmentRelatedObject value.
func (v *IncidentAttachmentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentRelationships The incident attachment's relationships.
type IncidentAttachmentRelationships struct {
// Relationship to user.
LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentRelationships() *IncidentAttachmentRelationships
NewIncidentAttachmentRelationships instantiates a new IncidentAttachmentRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentRelationshipsWithDefaults() *IncidentAttachmentRelationships
NewIncidentAttachmentRelationshipsWithDefaults instantiates a new IncidentAttachmentRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentRelationships) GetLastModifiedByUser() RelationshipToUser
GetLastModifiedByUser returns the LastModifiedByUser field value if set, zero value otherwise.
func (o *IncidentAttachmentRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)
GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentRelationships) HasLastModifiedByUser() bool
HasLastModifiedByUser returns a boolean if a field has been set.
func (o IncidentAttachmentRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentRelationships) SetLastModifiedByUser(v RelationshipToUser)
SetLastModifiedByUser gets a reference to the given RelationshipToUser and assigns it to the LastModifiedByUser field.
func (o *IncidentAttachmentRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentType The incident attachment resource type.
type IncidentAttachmentType string
List of IncidentAttachmentType.
const (
INCIDENTATTACHMENTTYPE_INCIDENT_ATTACHMENTS IncidentAttachmentType = "incident_attachments"
)
func NewIncidentAttachmentTypeFromValue(v string) (*IncidentAttachmentType, error)
NewIncidentAttachmentTypeFromValue returns a pointer to a valid IncidentAttachmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentAttachmentType) GetAllowedValues() []IncidentAttachmentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentAttachmentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentAttachmentType) Ptr() *IncidentAttachmentType
Ptr returns reference to IncidentAttachmentType value.
func (v *IncidentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateAttributes - Incident attachment attributes.
type IncidentAttachmentUpdateAttributes struct {
IncidentAttachmentPostmortemAttributes *IncidentAttachmentPostmortemAttributes
IncidentAttachmentLinkAttributes *IncidentAttachmentLinkAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentLinkAttributesAsIncidentAttachmentUpdateAttributes(v *IncidentAttachmentLinkAttributes) IncidentAttachmentUpdateAttributes
IncidentAttachmentLinkAttributesAsIncidentAttachmentUpdateAttributes is a convenience function that returns IncidentAttachmentLinkAttributes wrapped in IncidentAttachmentUpdateAttributes.
func IncidentAttachmentPostmortemAttributesAsIncidentAttachmentUpdateAttributes(v *IncidentAttachmentPostmortemAttributes) IncidentAttachmentUpdateAttributes
IncidentAttachmentPostmortemAttributesAsIncidentAttachmentUpdateAttributes is a convenience function that returns IncidentAttachmentPostmortemAttributes wrapped in IncidentAttachmentUpdateAttributes.
func (obj *IncidentAttachmentUpdateAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentUpdateAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentAttachmentUpdateData A single incident attachment.
type IncidentAttachmentUpdateData struct {
// Incident attachment attributes.
Attributes *IncidentAttachmentUpdateAttributes `json:"attributes,omitempty"`
// A unique identifier that represents the incident attachment.
Id *string `json:"id,omitempty"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateData(typeVar IncidentAttachmentType) *IncidentAttachmentUpdateData
NewIncidentAttachmentUpdateData instantiates a new IncidentAttachmentUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateDataWithDefaults() *IncidentAttachmentUpdateData
NewIncidentAttachmentUpdateDataWithDefaults instantiates a new IncidentAttachmentUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateData) GetAttributes() IncidentAttachmentUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateData) GetAttributesOk() (*IncidentAttachmentUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *IncidentAttachmentUpdateData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentAttachmentUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o IncidentAttachmentUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateData) SetAttributes(v IncidentAttachmentUpdateAttributes)
SetAttributes gets a reference to the given IncidentAttachmentUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentAttachmentUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentAttachmentUpdateData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *IncidentAttachmentUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateRequest The update request for an incident's attachments.
type IncidentAttachmentUpdateRequest struct {
// An array of incident attachments. An attachment object without an "id" key indicates that you want to
// create that attachment. An attachment object without an "attributes" key indicates that you want to
// delete that attachment. An attachment object with both the "id" key and a populated "attributes" object
// indicates that you want to update that attachment.
Data []IncidentAttachmentUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateRequest(data []IncidentAttachmentUpdateData) *IncidentAttachmentUpdateRequest
NewIncidentAttachmentUpdateRequest instantiates a new IncidentAttachmentUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateRequestWithDefaults() *IncidentAttachmentUpdateRequest
NewIncidentAttachmentUpdateRequestWithDefaults instantiates a new IncidentAttachmentUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateRequest) GetData() []IncidentAttachmentUpdateData
GetData returns the Data field value.
func (o *IncidentAttachmentUpdateRequest) GetDataOk() (*[]IncidentAttachmentUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentAttachmentUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateRequest) SetData(v []IncidentAttachmentUpdateData)
SetData sets field value.
func (o *IncidentAttachmentUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentUpdateResponse The response object containing the created or updated incident attachments.
type IncidentAttachmentUpdateResponse struct {
// An array of incident attachments. Only the attachments that were created or updated by the request are
// returned.
Data []IncidentAttachmentData `json:"data"`
// Included related resources that the user requested.
Included []IncidentAttachmentsResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentUpdateResponse(data []IncidentAttachmentData) *IncidentAttachmentUpdateResponse
NewIncidentAttachmentUpdateResponse instantiates a new IncidentAttachmentUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentUpdateResponseWithDefaults() *IncidentAttachmentUpdateResponse
NewIncidentAttachmentUpdateResponseWithDefaults instantiates a new IncidentAttachmentUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentUpdateResponse) GetData() []IncidentAttachmentData
GetData returns the Data field value.
func (o *IncidentAttachmentUpdateResponse) GetDataOk() (*[]IncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateResponse) GetIncluded() []IncidentAttachmentsResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentAttachmentUpdateResponse) GetIncludedOk() (*[]IncidentAttachmentsResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentUpdateResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentAttachmentUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentUpdateResponse) SetData(v []IncidentAttachmentData)
SetData sets field value.
func (o *IncidentAttachmentUpdateResponse) SetIncluded(v []IncidentAttachmentsResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentAttachmentsResponseIncludedItem and assigns it to the Included field.
func (o *IncidentAttachmentUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsPostmortemAttributesAttachmentObject The postmortem attachment.
type IncidentAttachmentsPostmortemAttributesAttachmentObject struct {
// The URL of this notebook attachment.
DocumentUrl string `json:"documentUrl"`
// The title of this postmortem attachment.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentsPostmortemAttributesAttachmentObject(documentUrl string, title string) *IncidentAttachmentsPostmortemAttributesAttachmentObject
NewIncidentAttachmentsPostmortemAttributesAttachmentObject instantiates a new IncidentAttachmentsPostmortemAttributesAttachmentObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentsPostmortemAttributesAttachmentObjectWithDefaults() *IncidentAttachmentsPostmortemAttributesAttachmentObject
NewIncidentAttachmentsPostmortemAttributesAttachmentObjectWithDefaults instantiates a new IncidentAttachmentsPostmortemAttributesAttachmentObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetDocumentUrl() string
GetDocumentUrl returns the DocumentUrl field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetDocumentUrlOk() (*string, bool)
GetDocumentUrlOk returns a tuple with the DocumentUrl field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o IncidentAttachmentsPostmortemAttributesAttachmentObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) SetDocumentUrl(v string)
SetDocumentUrl sets field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentAttachmentsPostmortemAttributesAttachmentObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsResponse The response object containing an incident's attachments.
type IncidentAttachmentsResponse struct {
// An array of incident attachments.
Data []IncidentAttachmentData `json:"data"`
// Included related resources that the user requested.
Included []IncidentAttachmentsResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentAttachmentsResponse(data []IncidentAttachmentData) *IncidentAttachmentsResponse
NewIncidentAttachmentsResponse instantiates a new IncidentAttachmentsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentAttachmentsResponseWithDefaults() *IncidentAttachmentsResponse
NewIncidentAttachmentsResponseWithDefaults instantiates a new IncidentAttachmentsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentAttachmentsResponse) GetData() []IncidentAttachmentData
GetData returns the Data field value.
func (o *IncidentAttachmentsResponse) GetDataOk() (*[]IncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentAttachmentsResponse) GetIncluded() []IncidentAttachmentsResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentAttachmentsResponse) GetIncludedOk() (*[]IncidentAttachmentsResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentAttachmentsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentAttachmentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentAttachmentsResponse) SetData(v []IncidentAttachmentData)
SetData sets field value.
func (o *IncidentAttachmentsResponse) SetIncluded(v []IncidentAttachmentsResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentAttachmentsResponseIncludedItem and assigns it to the Included field.
func (o *IncidentAttachmentsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentAttachmentsResponseIncludedItem - An object related to an attachment that is included in the response.
type IncidentAttachmentsResponseIncludedItem struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentAttachmentsResponseIncludedItem(v *User) IncidentAttachmentsResponseIncludedItem
UserAsIncidentAttachmentsResponseIncludedItem is a convenience function that returns User wrapped in IncidentAttachmentsResponseIncludedItem.
func (obj *IncidentAttachmentsResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentAttachmentsResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentAttachmentsResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentCreateAttributes The incident's attributes for a create request.
type IncidentCreateAttributes struct {
// A flag indicating whether the incident caused customer impact.
CustomerImpacted bool `json:"customer_impacted"`
// A condensed view of the user-defined fields for which to create initial selections.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// An array of initial timeline cells to be placed at the beginning of the incident timeline.
InitialCells []IncidentTimelineCellCreateAttributes `json:"initial_cells,omitempty"`
// Notification handles that will be notified of the incident at creation.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The title of the incident, which summarizes what happened.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateAttributes(customerImpacted bool, title string) *IncidentCreateAttributes
NewIncidentCreateAttributes instantiates a new IncidentCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateAttributesWithDefaults() *IncidentCreateAttributes
NewIncidentCreateAttributesWithDefaults instantiates a new IncidentCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value.
func (o *IncidentCreateAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetInitialCells() []IncidentTimelineCellCreateAttributes
GetInitialCells returns the InitialCells field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetInitialCellsOk() (*[]IncidentTimelineCellCreateAttributes, bool)
GetInitialCellsOk returns a tuple with the InitialCells field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise.
func (o *IncidentCreateAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o *IncidentCreateAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentCreateAttributes) HasInitialCells() bool
HasInitialCells returns a boolean if a field has been set.
func (o *IncidentCreateAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o IncidentCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted sets field value.
func (o *IncidentCreateAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentCreateAttributes) SetInitialCells(v []IncidentTimelineCellCreateAttributes)
SetInitialCells gets a reference to the given []IncidentTimelineCellCreateAttributes and assigns it to the InitialCells field.
func (o *IncidentCreateAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentCreateAttributes) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateData Incident data for a create request.
type IncidentCreateData struct {
// The incident's attributes for a create request.
Attributes IncidentCreateAttributes `json:"attributes"`
// The relationships the incident will have with other resources once created.
Relationships *IncidentCreateRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateData(attributes IncidentCreateAttributes, typeVar IncidentType) *IncidentCreateData
NewIncidentCreateData instantiates a new IncidentCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateDataWithDefaults() *IncidentCreateData
NewIncidentCreateDataWithDefaults instantiates a new IncidentCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateData) GetAttributes() IncidentCreateAttributes
GetAttributes returns the Attributes field value.
func (o *IncidentCreateData) GetAttributesOk() (*IncidentCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *IncidentCreateData) GetRelationships() IncidentCreateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentCreateData) GetRelationshipsOk() (*IncidentCreateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentCreateData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentCreateData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateData) SetAttributes(v IncidentCreateAttributes)
SetAttributes sets field value.
func (o *IncidentCreateData) SetRelationships(v IncidentCreateRelationships)
SetRelationships gets a reference to the given IncidentCreateRelationships and assigns it to the Relationships field.
func (o *IncidentCreateData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateRelationships The relationships the incident will have with other resources once created.
type IncidentCreateRelationships struct {
// Relationship to user.
CommanderUser NullableRelationshipToUser `json:"commander_user"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships
NewIncidentCreateRelationships instantiates a new IncidentCreateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateRelationshipsWithDefaults() *IncidentCreateRelationships
NewIncidentCreateRelationshipsWithDefaults instantiates a new IncidentCreateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value.
func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value and a boolean to check if the value has been set.
func (o IncidentCreateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser sets field value.
func (o *IncidentCreateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentCreateRequest Create request for an incident.
type IncidentCreateRequest struct {
// Incident data for a create request.
Data IncidentCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentCreateRequest(data IncidentCreateData) *IncidentCreateRequest
NewIncidentCreateRequest instantiates a new IncidentCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentCreateRequestWithDefaults() *IncidentCreateRequest
NewIncidentCreateRequestWithDefaults instantiates a new IncidentCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentCreateRequest) GetData() IncidentCreateData
GetData returns the Data field value.
func (o *IncidentCreateRequest) GetDataOk() (*IncidentCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentCreateRequest) SetData(v IncidentCreateData)
SetData sets field value.
func (o *IncidentCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentFieldAttributes - Dynamic fields for which selections can be made, with field names as keys.
type IncidentFieldAttributes struct {
IncidentFieldAttributesSingleValue *IncidentFieldAttributesSingleValue
IncidentFieldAttributesMultipleValue *IncidentFieldAttributesMultipleValue
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentFieldAttributesMultipleValueAsIncidentFieldAttributes(v *IncidentFieldAttributesMultipleValue) IncidentFieldAttributes
IncidentFieldAttributesMultipleValueAsIncidentFieldAttributes is a convenience function that returns IncidentFieldAttributesMultipleValue wrapped in IncidentFieldAttributes.
func IncidentFieldAttributesSingleValueAsIncidentFieldAttributes(v *IncidentFieldAttributesSingleValue) IncidentFieldAttributes
IncidentFieldAttributesSingleValueAsIncidentFieldAttributes is a convenience function that returns IncidentFieldAttributesSingleValue wrapped in IncidentFieldAttributes.
func (obj *IncidentFieldAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentFieldAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentFieldAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentFieldAttributesMultipleValue A field with potentially multiple values selected.
type IncidentFieldAttributesMultipleValue struct {
// Type of the multiple value field definitions.
Type *IncidentFieldAttributesValueType `json:"type,omitempty"`
// The multiple values selected for this field.
Value []string `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentFieldAttributesMultipleValue() *IncidentFieldAttributesMultipleValue
NewIncidentFieldAttributesMultipleValue instantiates a new IncidentFieldAttributesMultipleValue object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentFieldAttributesMultipleValueWithDefaults() *IncidentFieldAttributesMultipleValue
NewIncidentFieldAttributesMultipleValueWithDefaults instantiates a new IncidentFieldAttributesMultipleValue object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentFieldAttributesMultipleValue) GetType() IncidentFieldAttributesValueType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentFieldAttributesMultipleValue) GetTypeOk() (*IncidentFieldAttributesValueType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentFieldAttributesMultipleValue) GetValue() []string
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentFieldAttributesMultipleValue) GetValueOk() (*[]string, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentFieldAttributesMultipleValue) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IncidentFieldAttributesMultipleValue) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o IncidentFieldAttributesMultipleValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentFieldAttributesMultipleValue) SetType(v IncidentFieldAttributesValueType)
SetType gets a reference to the given IncidentFieldAttributesValueType and assigns it to the Type field.
func (o *IncidentFieldAttributesMultipleValue) SetValue(v []string)
SetValue gets a reference to the given []string and assigns it to the Value field.
func (o *IncidentFieldAttributesMultipleValue) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentFieldAttributesSingleValue A field with a single value selected.
type IncidentFieldAttributesSingleValue struct {
// Type of the single value field definitions.
Type *IncidentFieldAttributesSingleValueType `json:"type,omitempty"`
// The single value selected for this field.
Value datadog.NullableString `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentFieldAttributesSingleValue() *IncidentFieldAttributesSingleValue
NewIncidentFieldAttributesSingleValue instantiates a new IncidentFieldAttributesSingleValue object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentFieldAttributesSingleValueWithDefaults() *IncidentFieldAttributesSingleValue
NewIncidentFieldAttributesSingleValueWithDefaults instantiates a new IncidentFieldAttributesSingleValue object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentFieldAttributesSingleValue) GetType() IncidentFieldAttributesSingleValueType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentFieldAttributesSingleValue) GetTypeOk() (*IncidentFieldAttributesSingleValueType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentFieldAttributesSingleValue) GetValue() string
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentFieldAttributesSingleValue) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentFieldAttributesSingleValue) HasType() bool
HasType returns a boolean if a field has been set.
func (o *IncidentFieldAttributesSingleValue) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o IncidentFieldAttributesSingleValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentFieldAttributesSingleValue) SetType(v IncidentFieldAttributesSingleValueType)
SetType gets a reference to the given IncidentFieldAttributesSingleValueType and assigns it to the Type field.
func (o *IncidentFieldAttributesSingleValue) SetValue(v string)
SetValue gets a reference to the given datadog.NullableString and assigns it to the Value field.
func (o *IncidentFieldAttributesSingleValue) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *IncidentFieldAttributesSingleValue) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentFieldAttributesSingleValue) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
IncidentFieldAttributesSingleValueType Type of the single value field definitions.
type IncidentFieldAttributesSingleValueType string
List of IncidentFieldAttributesSingleValueType.
const (
INCIDENTFIELDATTRIBUTESSINGLEVALUETYPE_DROPDOWN IncidentFieldAttributesSingleValueType = "dropdown"
INCIDENTFIELDATTRIBUTESSINGLEVALUETYPE_TEXTBOX IncidentFieldAttributesSingleValueType = "textbox"
)
func NewIncidentFieldAttributesSingleValueTypeFromValue(v string) (*IncidentFieldAttributesSingleValueType, error)
NewIncidentFieldAttributesSingleValueTypeFromValue returns a pointer to a valid IncidentFieldAttributesSingleValueType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentFieldAttributesSingleValueType) GetAllowedValues() []IncidentFieldAttributesSingleValueType
GetAllowedValues reeturns the list of possible values.
func (v IncidentFieldAttributesSingleValueType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentFieldAttributesSingleValueType) Ptr() *IncidentFieldAttributesSingleValueType
Ptr returns reference to IncidentFieldAttributesSingleValueType value.
func (v *IncidentFieldAttributesSingleValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentFieldAttributesValueType Type of the multiple value field definitions.
type IncidentFieldAttributesValueType string
List of IncidentFieldAttributesValueType.
const (
INCIDENTFIELDATTRIBUTESVALUETYPE_MULTISELECT IncidentFieldAttributesValueType = "multiselect"
INCIDENTFIELDATTRIBUTESVALUETYPE_TEXTARRAY IncidentFieldAttributesValueType = "textarray"
INCIDENTFIELDATTRIBUTESVALUETYPE_METRICTAG IncidentFieldAttributesValueType = "metrictag"
INCIDENTFIELDATTRIBUTESVALUETYPE_AUTOCOMPLETE IncidentFieldAttributesValueType = "autocomplete"
)
func NewIncidentFieldAttributesValueTypeFromValue(v string) (*IncidentFieldAttributesValueType, error)
NewIncidentFieldAttributesValueTypeFromValue returns a pointer to a valid IncidentFieldAttributesValueType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentFieldAttributesValueType) GetAllowedValues() []IncidentFieldAttributesValueType
GetAllowedValues reeturns the list of possible values.
func (v IncidentFieldAttributesValueType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentFieldAttributesValueType) Ptr() *IncidentFieldAttributesValueType
Ptr returns reference to IncidentFieldAttributesValueType value.
func (v *IncidentFieldAttributesValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentIntegrationMetadataType Integration metadata resource type.
type IncidentIntegrationMetadataType string
List of IncidentIntegrationMetadataType.
const (
INCIDENTINTEGRATIONMETADATATYPE_INCIDENT_INTEGRATIONS IncidentIntegrationMetadataType = "incident_integrations"
)
func NewIncidentIntegrationMetadataTypeFromValue(v string) (*IncidentIntegrationMetadataType, error)
NewIncidentIntegrationMetadataTypeFromValue returns a pointer to a valid IncidentIntegrationMetadataType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentIntegrationMetadataType) GetAllowedValues() []IncidentIntegrationMetadataType
GetAllowedValues reeturns the list of possible values.
func (v IncidentIntegrationMetadataType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentIntegrationMetadataType) Ptr() *IncidentIntegrationMetadataType
Ptr returns reference to IncidentIntegrationMetadataType value.
func (v *IncidentIntegrationMetadataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentNotificationHandle A notification handle that will be notified at incident creation.
type IncidentNotificationHandle struct {
// The name of the notified handle.
DisplayName *string `json:"display_name,omitempty"`
// The email address used for the notification.
Handle *string `json:"handle,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentNotificationHandle() *IncidentNotificationHandle
NewIncidentNotificationHandle instantiates a new IncidentNotificationHandle object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentNotificationHandleWithDefaults() *IncidentNotificationHandle
NewIncidentNotificationHandleWithDefaults instantiates a new IncidentNotificationHandle object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentNotificationHandle) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *IncidentNotificationHandle) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentNotificationHandle) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *IncidentNotificationHandle) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentNotificationHandle) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *IncidentNotificationHandle) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o IncidentNotificationHandle) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentNotificationHandle) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *IncidentNotificationHandle) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *IncidentNotificationHandle) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentPostmortemType Incident postmortem resource type.
type IncidentPostmortemType string
List of IncidentPostmortemType.
const (
INCIDENTPOSTMORTEMTYPE_INCIDENT_POSTMORTEMS IncidentPostmortemType = "incident_postmortems"
)
func NewIncidentPostmortemTypeFromValue(v string) (*IncidentPostmortemType, error)
NewIncidentPostmortemTypeFromValue returns a pointer to a valid IncidentPostmortemType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentPostmortemType) GetAllowedValues() []IncidentPostmortemType
GetAllowedValues reeturns the list of possible values.
func (v IncidentPostmortemType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentPostmortemType) Ptr() *IncidentPostmortemType
Ptr returns reference to IncidentPostmortemType value.
func (v *IncidentPostmortemType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentRelatedObject Object related to an incident.
type IncidentRelatedObject string
List of IncidentRelatedObject.
const (
INCIDENTRELATEDOBJECT_USERS IncidentRelatedObject = "users"
INCIDENTRELATEDOBJECT_ATTACHMENTS IncidentRelatedObject = "attachments"
)
func NewIncidentRelatedObjectFromValue(v string) (*IncidentRelatedObject, error)
NewIncidentRelatedObjectFromValue returns a pointer to a valid IncidentRelatedObject for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentRelatedObject) GetAllowedValues() []IncidentRelatedObject
GetAllowedValues reeturns the list of possible values.
func (v IncidentRelatedObject) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentRelatedObject) Ptr() *IncidentRelatedObject
Ptr returns reference to IncidentRelatedObject value.
func (v *IncidentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentResponse Response with an incident.
type IncidentResponse struct {
// Incident data from a response.
Data IncidentResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponse(data IncidentResponseData) *IncidentResponse
NewIncidentResponse instantiates a new IncidentResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseWithDefaults() *IncidentResponse
NewIncidentResponseWithDefaults instantiates a new IncidentResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponse) GetData() IncidentResponseData
GetData returns the Data field value.
func (o *IncidentResponse) GetDataOk() (*IncidentResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentResponse) GetIncluded() []IncidentResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentResponse) GetIncludedOk() (*[]IncidentResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponse) SetData(v IncidentResponseData)
SetData sets field value.
func (o *IncidentResponse) SetIncluded(v []IncidentResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentResponseIncludedItem and assigns it to the Included field.
func (o *IncidentResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseAttributes The incident's attributes from a response.
type IncidentResponseAttributes struct {
// Timestamp when the incident was created.
Created *time.Time `json:"created,omitempty"`
// Length of the incident's customer impact in seconds.
// Equals the difference between `customer_impact_start` and `customer_impact_end`.
CustomerImpactDuration *int64 `json:"customer_impact_duration,omitempty"`
// Timestamp when customers were no longer impacted by the incident.
CustomerImpactEnd datadog.NullableTime `json:"customer_impact_end,omitempty"`
// A summary of the impact customers experienced during the incident.
CustomerImpactScope datadog.NullableString `json:"customer_impact_scope,omitempty"`
// Timestamp when customers began being impacted by the incident.
CustomerImpactStart datadog.NullableTime `json:"customer_impact_start,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted *bool `json:"customer_impacted,omitempty"`
// Timestamp when the incident was detected.
Detected datadog.NullableTime `json:"detected,omitempty"`
// A condensed view of the user-defined fields attached to incidents.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// Timestamp when the incident was last modified.
Modified *time.Time `json:"modified,omitempty"`
// Notification handles that will be notified of the incident during update.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The monotonically increasing integer ID for the incident.
PublicId *int64 `json:"public_id,omitempty"`
// Timestamp when the incident's state was last changed from active or stable to resolved or completed.
Resolved datadog.NullableTime `json:"resolved,omitempty"`
// The amount of time in seconds to detect the incident.
// Equals the difference between `customer_impact_start` and `detected`.
TimeToDetect *int64 `json:"time_to_detect,omitempty"`
// The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`.
TimeToInternalResponse *int64 `json:"time_to_internal_response,omitempty"`
// The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`.
TimeToRepair *int64 `json:"time_to_repair,omitempty"`
// The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`.
TimeToResolve *int64 `json:"time_to_resolve,omitempty"`
// The title of the incident, which summarizes what happened.
Title string `json:"title"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseAttributes(title string) *IncidentResponseAttributes
NewIncidentResponseAttributes instantiates a new IncidentResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseAttributesWithDefaults() *IncidentResponseAttributes
NewIncidentResponseAttributesWithDefaults instantiates a new IncidentResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactDuration() int64
GetCustomerImpactDuration returns the CustomerImpactDuration field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpactDurationOk() (*int64, bool)
GetCustomerImpactDurationOk returns a tuple with the CustomerImpactDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactEnd() time.Time
GetCustomerImpactEnd returns the CustomerImpactEnd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactEndOk() (*time.Time, bool)
GetCustomerImpactEndOk returns a tuple with the CustomerImpactEnd field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpactScope() string
GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactScopeOk() (*string, bool)
GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpactStart() time.Time
GetCustomerImpactStart returns the CustomerImpactStart field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactStartOk() (*time.Time, bool)
GetCustomerImpactStartOk returns a tuple with the CustomerImpactStart field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetDetected() time.Time
GetDetected returns the Detected field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetDetectedOk() (*time.Time, bool)
GetDetectedOk returns a tuple with the Detected field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetPublicId() int64
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetPublicIdOk() (*int64, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetResolved() time.Time
GetResolved returns the Resolved field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetResolvedOk() (*time.Time, bool)
GetResolvedOk returns a tuple with the Resolved field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentResponseAttributes) GetTimeToDetect() int64
GetTimeToDetect returns the TimeToDetect field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToDetectOk() (*int64, bool)
GetTimeToDetectOk returns a tuple with the TimeToDetect field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToInternalResponse() int64
GetTimeToInternalResponse returns the TimeToInternalResponse field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToInternalResponseOk() (*int64, bool)
GetTimeToInternalResponseOk returns a tuple with the TimeToInternalResponse field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToRepair() int64
GetTimeToRepair returns the TimeToRepair field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToRepairOk() (*int64, bool)
GetTimeToRepairOk returns a tuple with the TimeToRepair field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToResolve() int64
GetTimeToResolve returns the TimeToResolve field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToResolveOk() (*int64, bool)
GetTimeToResolveOk returns a tuple with the TimeToResolve field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTitle() string
GetTitle returns the Title field value.
func (o *IncidentResponseAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactDuration() bool
HasCustomerImpactDuration returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactEnd() bool
HasCustomerImpactEnd returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactScope() bool
HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactStart() bool
HasCustomerImpactStart returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpacted() bool
HasCustomerImpacted returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasDetected() bool
HasDetected returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasResolved() bool
HasResolved returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToDetect() bool
HasTimeToDetect returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToInternalResponse() bool
HasTimeToInternalResponse returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToRepair() bool
HasTimeToRepair returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToResolve() bool
HasTimeToResolve returns a boolean if a field has been set.
func (o IncidentResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentResponseAttributes) SetCustomerImpactDuration(v int64)
SetCustomerImpactDuration gets a reference to the given int64 and assigns it to the CustomerImpactDuration field.
func (o *IncidentResponseAttributes) SetCustomerImpactEnd(v time.Time)
SetCustomerImpactEnd gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactEnd field.
func (o *IncidentResponseAttributes) SetCustomerImpactEndNil()
SetCustomerImpactEndNil sets the value for CustomerImpactEnd to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpactScope(v string)
SetCustomerImpactScope gets a reference to the given datadog.NullableString and assigns it to the CustomerImpactScope field.
func (o *IncidentResponseAttributes) SetCustomerImpactScopeNil()
SetCustomerImpactScopeNil sets the value for CustomerImpactScope to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpactStart(v time.Time)
SetCustomerImpactStart gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactStart field.
func (o *IncidentResponseAttributes) SetCustomerImpactStartNil()
SetCustomerImpactStartNil sets the value for CustomerImpactStart to be an explicit nil.
func (o *IncidentResponseAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted gets a reference to the given bool and assigns it to the CustomerImpacted field.
func (o *IncidentResponseAttributes) SetDetected(v time.Time)
SetDetected gets a reference to the given datadog.NullableTime and assigns it to the Detected field.
func (o *IncidentResponseAttributes) SetDetectedNil()
SetDetectedNil sets the value for Detected to be an explicit nil.
func (o *IncidentResponseAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentResponseAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentResponseAttributes) SetPublicId(v int64)
SetPublicId gets a reference to the given int64 and assigns it to the PublicId field.
func (o *IncidentResponseAttributes) SetResolved(v time.Time)
SetResolved gets a reference to the given datadog.NullableTime and assigns it to the Resolved field.
func (o *IncidentResponseAttributes) SetResolvedNil()
SetResolvedNil sets the value for Resolved to be an explicit nil.
func (o *IncidentResponseAttributes) SetTimeToDetect(v int64)
SetTimeToDetect gets a reference to the given int64 and assigns it to the TimeToDetect field.
func (o *IncidentResponseAttributes) SetTimeToInternalResponse(v int64)
SetTimeToInternalResponse gets a reference to the given int64 and assigns it to the TimeToInternalResponse field.
func (o *IncidentResponseAttributes) SetTimeToRepair(v int64)
SetTimeToRepair gets a reference to the given int64 and assigns it to the TimeToRepair field.
func (o *IncidentResponseAttributes) SetTimeToResolve(v int64)
SetTimeToResolve gets a reference to the given int64 and assigns it to the TimeToResolve field.
func (o *IncidentResponseAttributes) SetTitle(v string)
SetTitle sets field value.
func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentResponseAttributes) UnsetCustomerImpactEnd()
UnsetCustomerImpactEnd ensures that no value is present for CustomerImpactEnd, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetCustomerImpactScope()
UnsetCustomerImpactScope ensures that no value is present for CustomerImpactScope, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetCustomerImpactStart()
UnsetCustomerImpactStart ensures that no value is present for CustomerImpactStart, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetDetected()
UnsetDetected ensures that no value is present for Detected, not even an explicit nil.
func (o *IncidentResponseAttributes) UnsetResolved()
UnsetResolved ensures that no value is present for Resolved, not even an explicit nil.
IncidentResponseData Incident data from a response.
type IncidentResponseData struct {
// The incident's attributes from a response.
Attributes *IncidentResponseAttributes `json:"attributes,omitempty"`
// The incident's ID.
Id string `json:"id"`
// The incident's relationships from a response.
Relationships *IncidentResponseRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseData(id string, typeVar IncidentType) *IncidentResponseData
NewIncidentResponseData instantiates a new IncidentResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseDataWithDefaults() *IncidentResponseData
NewIncidentResponseDataWithDefaults instantiates a new IncidentResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseData) GetAttributes() IncidentResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentResponseData) GetAttributesOk() (*IncidentResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetRelationships() IncidentResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentResponseData) GetRelationshipsOk() (*IncidentResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentResponseData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseData) SetAttributes(v IncidentResponseAttributes)
SetAttributes gets a reference to the given IncidentResponseAttributes and assigns it to the Attributes field.
func (o *IncidentResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentResponseData) SetRelationships(v IncidentResponseRelationships)
SetRelationships gets a reference to the given IncidentResponseRelationships and assigns it to the Relationships field.
func (o *IncidentResponseData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseIncludedItem - An object related to an incident that is included in the response.
type IncidentResponseIncludedItem struct {
User *User
IncidentAttachmentData *IncidentAttachmentData
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentAttachmentDataAsIncidentResponseIncludedItem(v *IncidentAttachmentData) IncidentResponseIncludedItem
IncidentAttachmentDataAsIncidentResponseIncludedItem is a convenience function that returns IncidentAttachmentData wrapped in IncidentResponseIncludedItem.
func UserAsIncidentResponseIncludedItem(v *User) IncidentResponseIncludedItem
UserAsIncidentResponseIncludedItem is a convenience function that returns User wrapped in IncidentResponseIncludedItem.
func (obj *IncidentResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentResponseMeta The metadata object containing pagination metadata.
type IncidentResponseMeta struct {
// Pagination properties.
Pagination *IncidentResponseMetaPagination `json:"pagination,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseMeta() *IncidentResponseMeta
NewIncidentResponseMeta instantiates a new IncidentResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseMetaWithDefaults() *IncidentResponseMeta
NewIncidentResponseMetaWithDefaults instantiates a new IncidentResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseMeta) GetPagination() IncidentResponseMetaPagination
GetPagination returns the Pagination field value if set, zero value otherwise.
func (o *IncidentResponseMeta) GetPaginationOk() (*IncidentResponseMetaPagination, bool)
GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMeta) HasPagination() bool
HasPagination returns a boolean if a field has been set.
func (o IncidentResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseMeta) SetPagination(v IncidentResponseMetaPagination)
SetPagination gets a reference to the given IncidentResponseMetaPagination and assigns it to the Pagination field.
func (o *IncidentResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseMetaPagination Pagination properties.
type IncidentResponseMetaPagination struct {
// The index of the first element in the next page of results. Equal to page size added to the current offset.
NextOffset *int64 `json:"next_offset,omitempty"`
// The index of the first element in the results.
Offset *int64 `json:"offset,omitempty"`
// Maximum size of pages to return.
Size *int64 `json:"size,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseMetaPagination() *IncidentResponseMetaPagination
NewIncidentResponseMetaPagination instantiates a new IncidentResponseMetaPagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseMetaPaginationWithDefaults() *IncidentResponseMetaPagination
NewIncidentResponseMetaPaginationWithDefaults instantiates a new IncidentResponseMetaPagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseMetaPagination) GetNextOffset() int64
GetNextOffset returns the NextOffset field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetNextOffsetOk() (*int64, bool)
GetNextOffsetOk returns a tuple with the NextOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) GetOffset() int64
GetOffset returns the Offset field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetOffsetOk() (*int64, bool)
GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) GetSize() int64
GetSize returns the Size field value if set, zero value otherwise.
func (o *IncidentResponseMetaPagination) GetSizeOk() (*int64, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseMetaPagination) HasNextOffset() bool
HasNextOffset returns a boolean if a field has been set.
func (o *IncidentResponseMetaPagination) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *IncidentResponseMetaPagination) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o IncidentResponseMetaPagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseMetaPagination) SetNextOffset(v int64)
SetNextOffset gets a reference to the given int64 and assigns it to the NextOffset field.
func (o *IncidentResponseMetaPagination) SetOffset(v int64)
SetOffset gets a reference to the given int64 and assigns it to the Offset field.
func (o *IncidentResponseMetaPagination) SetSize(v int64)
SetSize gets a reference to the given int64 and assigns it to the Size field.
func (o *IncidentResponseMetaPagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentResponseRelationships The incident's relationships from a response.
type IncidentResponseRelationships struct {
// A relationship reference for attachments.
Attachments *RelationshipToIncidentAttachment `json:"attachments,omitempty"`
// Relationship to user.
CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"`
// Relationship to user.
CreatedByUser *RelationshipToUser `json:"created_by_user,omitempty"`
// A relationship reference for multiple integration metadata objects.
Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"`
// Relationship to user.
LastModifiedByUser *RelationshipToUser `json:"last_modified_by_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentResponseRelationships() *IncidentResponseRelationships
NewIncidentResponseRelationships instantiates a new IncidentResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentResponseRelationshipsWithDefaults() *IncidentResponseRelationships
NewIncidentResponseRelationshipsWithDefaults instantiates a new IncidentResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentResponseRelationships) GetAttachments() RelationshipToIncidentAttachment
GetAttachments returns the Attachments field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetAttachmentsOk() (*RelationshipToIncidentAttachment, bool)
GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetCreatedByUser() RelationshipToUser
GetCreatedByUser returns the CreatedByUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetCreatedByUserOk() (*RelationshipToUser, bool)
GetCreatedByUserOk returns a tuple with the CreatedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetIntegrationsOk() (*RelationshipToIncidentIntegrationMetadatas, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) GetLastModifiedByUser() RelationshipToUser
GetLastModifiedByUser returns the LastModifiedByUser field value if set, zero value otherwise.
func (o *IncidentResponseRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)
GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentResponseRelationships) HasAttachments() bool
HasAttachments returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasCommanderUser() bool
HasCommanderUser returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasCreatedByUser() bool
HasCreatedByUser returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *IncidentResponseRelationships) HasLastModifiedByUser() bool
HasLastModifiedByUser returns a boolean if a field has been set.
func (o IncidentResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentResponseRelationships) SetAttachments(v RelationshipToIncidentAttachment)
SetAttachments gets a reference to the given RelationshipToIncidentAttachment and assigns it to the Attachments field.
func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field.
func (o *IncidentResponseRelationships) SetCreatedByUser(v RelationshipToUser)
SetCreatedByUser gets a reference to the given RelationshipToUser and assigns it to the CreatedByUser field.
func (o *IncidentResponseRelationships) SetIntegrations(v RelationshipToIncidentIntegrationMetadatas)
SetIntegrations gets a reference to the given RelationshipToIncidentIntegrationMetadatas and assigns it to the Integrations field.
func (o *IncidentResponseRelationships) SetLastModifiedByUser(v RelationshipToUser)
SetLastModifiedByUser gets a reference to the given RelationshipToUser and assigns it to the LastModifiedByUser field.
func (o *IncidentResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateAttributes The incident service's attributes for a create request.
type IncidentServiceCreateAttributes struct {
// Name of the incident service.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateAttributes(name string) *IncidentServiceCreateAttributes
NewIncidentServiceCreateAttributes instantiates a new IncidentServiceCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateAttributesWithDefaults() *IncidentServiceCreateAttributes
NewIncidentServiceCreateAttributesWithDefaults instantiates a new IncidentServiceCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentServiceCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentServiceCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentServiceCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateData Incident Service payload for create requests.
type IncidentServiceCreateData struct {
// The incident service's attributes for a create request.
Attributes *IncidentServiceCreateAttributes `json:"attributes,omitempty"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateData(typeVar IncidentServiceType) *IncidentServiceCreateData
NewIncidentServiceCreateData instantiates a new IncidentServiceCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateDataWithDefaults() *IncidentServiceCreateData
NewIncidentServiceCreateDataWithDefaults instantiates a new IncidentServiceCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateData) GetAttributes() IncidentServiceCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceCreateData) GetAttributesOk() (*IncidentServiceCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceCreateData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceCreateData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateData) SetAttributes(v IncidentServiceCreateAttributes)
SetAttributes gets a reference to the given IncidentServiceCreateAttributes and assigns it to the Attributes field.
func (o *IncidentServiceCreateData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceCreateData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceCreateRequest Create request with an incident service payload.
type IncidentServiceCreateRequest struct {
// Incident Service payload for create requests.
Data IncidentServiceCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceCreateRequest(data IncidentServiceCreateData) *IncidentServiceCreateRequest
NewIncidentServiceCreateRequest instantiates a new IncidentServiceCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceCreateRequestWithDefaults() *IncidentServiceCreateRequest
NewIncidentServiceCreateRequestWithDefaults instantiates a new IncidentServiceCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceCreateRequest) GetData() IncidentServiceCreateData
GetData returns the Data field value.
func (o *IncidentServiceCreateRequest) GetDataOk() (*IncidentServiceCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentServiceCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceCreateRequest) SetData(v IncidentServiceCreateData)
SetData sets field value.
func (o *IncidentServiceCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceIncludedItems - An object related to an incident service which is present in the included payload.
type IncidentServiceIncludedItems struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentServiceIncludedItems(v *User) IncidentServiceIncludedItems
UserAsIncidentServiceIncludedItems is a convenience function that returns User wrapped in IncidentServiceIncludedItems.
func (obj *IncidentServiceIncludedItems) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentServiceIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentServiceIncludedItems) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentServiceRelationships The incident service's relationships.
type IncidentServiceRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
LastModifiedBy *RelationshipToUser `json:"last_modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceRelationships() *IncidentServiceRelationships
NewIncidentServiceRelationships instantiates a new IncidentServiceRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceRelationshipsWithDefaults() *IncidentServiceRelationships
NewIncidentServiceRelationshipsWithDefaults instantiates a new IncidentServiceRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *IncidentServiceRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceRelationships) GetLastModifiedBy() RelationshipToUser
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *IncidentServiceRelationships) GetLastModifiedByOk() (*RelationshipToUser, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *IncidentServiceRelationships) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o IncidentServiceRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *IncidentServiceRelationships) SetLastModifiedBy(v RelationshipToUser)
SetLastModifiedBy gets a reference to the given RelationshipToUser and assigns it to the LastModifiedBy field.
func (o *IncidentServiceRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponse Response with an incident service payload.
type IncidentServiceResponse struct {
// Incident Service data from responses.
Data IncidentServiceResponseData `json:"data"`
// Included objects from relationships.
Included []IncidentServiceIncludedItems `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponse(data IncidentServiceResponseData) *IncidentServiceResponse
NewIncidentServiceResponse instantiates a new IncidentServiceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseWithDefaults() *IncidentServiceResponse
NewIncidentServiceResponseWithDefaults instantiates a new IncidentServiceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponse) GetData() IncidentServiceResponseData
GetData returns the Data field value.
func (o *IncidentServiceResponse) GetDataOk() (*IncidentServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponse) GetIncluded() []IncidentServiceIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentServiceResponse) GetIncludedOk() (*[]IncidentServiceIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponse) SetData(v IncidentServiceResponseData)
SetData sets field value.
func (o *IncidentServiceResponse) SetIncluded(v []IncidentServiceIncludedItems)
SetIncluded gets a reference to the given []IncidentServiceIncludedItems and assigns it to the Included field.
func (o *IncidentServiceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponseAttributes The incident service's attributes from a response.
type IncidentServiceResponseAttributes struct {
// Timestamp of when the incident service was created.
Created *time.Time `json:"created,omitempty"`
// Timestamp of when the incident service was modified.
Modified *time.Time `json:"modified,omitempty"`
// Name of the incident service.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponseAttributes() *IncidentServiceResponseAttributes
NewIncidentServiceResponseAttributes instantiates a new IncidentServiceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseAttributesWithDefaults() *IncidentServiceResponseAttributes
NewIncidentServiceResponseAttributesWithDefaults instantiates a new IncidentServiceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentServiceResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentServiceResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentServiceResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o IncidentServiceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentServiceResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentServiceResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentServiceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceResponseData Incident Service data from responses.
type IncidentServiceResponseData struct {
// The incident service's attributes from a response.
Attributes *IncidentServiceResponseAttributes `json:"attributes,omitempty"`
// The incident service's ID.
Id string `json:"id"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceResponseData(id string, typeVar IncidentServiceType) *IncidentServiceResponseData
NewIncidentServiceResponseData instantiates a new IncidentServiceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceResponseDataWithDefaults() *IncidentServiceResponseData
NewIncidentServiceResponseDataWithDefaults instantiates a new IncidentServiceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceResponseData) GetAttributes() IncidentServiceResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceResponseData) GetAttributesOk() (*IncidentServiceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetId() string
GetId returns the Id field value.
func (o *IncidentServiceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceResponseData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceResponseData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceResponseData) SetAttributes(v IncidentServiceResponseAttributes)
SetAttributes gets a reference to the given IncidentServiceResponseAttributes and assigns it to the Attributes field.
func (o *IncidentServiceResponseData) SetId(v string)
SetId sets field value.
func (o *IncidentServiceResponseData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceResponseData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceType Incident service resource type.
type IncidentServiceType string
List of IncidentServiceType.
const (
INCIDENTSERVICETYPE_SERVICES IncidentServiceType = "services"
)
func NewIncidentServiceTypeFromValue(v string) (*IncidentServiceType, error)
NewIncidentServiceTypeFromValue returns a pointer to a valid IncidentServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentServiceType) GetAllowedValues() []IncidentServiceType
GetAllowedValues reeturns the list of possible values.
func (v IncidentServiceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentServiceType) Ptr() *IncidentServiceType
Ptr returns reference to IncidentServiceType value.
func (v *IncidentServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateAttributes The incident service's attributes for an update request.
type IncidentServiceUpdateAttributes struct {
// Name of the incident service.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateAttributes(name string) *IncidentServiceUpdateAttributes
NewIncidentServiceUpdateAttributes instantiates a new IncidentServiceUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateAttributesWithDefaults() *IncidentServiceUpdateAttributes
NewIncidentServiceUpdateAttributesWithDefaults instantiates a new IncidentServiceUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentServiceUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentServiceUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentServiceUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateData Incident Service payload for update requests.
type IncidentServiceUpdateData struct {
// The incident service's attributes for an update request.
Attributes *IncidentServiceUpdateAttributes `json:"attributes,omitempty"`
// The incident service's ID.
Id *string `json:"id,omitempty"`
// The incident service's relationships.
Relationships *IncidentServiceRelationships `json:"relationships,omitempty"`
// Incident service resource type.
Type IncidentServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateData(typeVar IncidentServiceType) *IncidentServiceUpdateData
NewIncidentServiceUpdateData instantiates a new IncidentServiceUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateDataWithDefaults() *IncidentServiceUpdateData
NewIncidentServiceUpdateDataWithDefaults instantiates a new IncidentServiceUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateData) GetAttributes() IncidentServiceUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetAttributesOk() (*IncidentServiceUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetRelationships() IncidentServiceRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentServiceUpdateData) GetRelationshipsOk() (*IncidentServiceRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) GetType() IncidentServiceType
GetType returns the Type field value.
func (o *IncidentServiceUpdateData) GetTypeOk() (*IncidentServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentServiceUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentServiceUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentServiceUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentServiceUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateData) SetAttributes(v IncidentServiceUpdateAttributes)
SetAttributes gets a reference to the given IncidentServiceUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentServiceUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentServiceUpdateData) SetRelationships(v IncidentServiceRelationships)
SetRelationships gets a reference to the given IncidentServiceRelationships and assigns it to the Relationships field.
func (o *IncidentServiceUpdateData) SetType(v IncidentServiceType)
SetType sets field value.
func (o *IncidentServiceUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServiceUpdateRequest Update request with an incident service payload.
type IncidentServiceUpdateRequest struct {
// Incident Service payload for update requests.
Data IncidentServiceUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServiceUpdateRequest(data IncidentServiceUpdateData) *IncidentServiceUpdateRequest
NewIncidentServiceUpdateRequest instantiates a new IncidentServiceUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServiceUpdateRequestWithDefaults() *IncidentServiceUpdateRequest
NewIncidentServiceUpdateRequestWithDefaults instantiates a new IncidentServiceUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServiceUpdateRequest) GetData() IncidentServiceUpdateData
GetData returns the Data field value.
func (o *IncidentServiceUpdateRequest) GetDataOk() (*IncidentServiceUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentServiceUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServiceUpdateRequest) SetData(v IncidentServiceUpdateData)
SetData sets field value.
func (o *IncidentServiceUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentServicesApi service type
type IncidentServicesApi datadog.Service
func NewIncidentServicesApi(client *datadog.APIClient) *IncidentServicesApi
NewIncidentServicesApi Returns NewIncidentServicesApi.
func (a *IncidentServicesApi) CreateIncidentService(ctx _context.Context, body IncidentServiceCreateRequest) (IncidentServiceResponse, *_nethttp.Response, error)
CreateIncidentService Create a new incident service. Creates a new incident service.
func (a *IncidentServicesApi) DeleteIncidentService(ctx _context.Context, serviceId string) (*_nethttp.Response, error)
DeleteIncidentService Delete an existing incident service. Deletes an existing incident service.
func (a *IncidentServicesApi) GetIncidentService(ctx _context.Context, serviceId string, o ...GetIncidentServiceOptionalParameters) (IncidentServiceResponse, *_nethttp.Response, error)
GetIncidentService Get details of an incident service. Get details of an incident service. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services.
func (a *IncidentServicesApi) ListIncidentServices(ctx _context.Context, o ...ListIncidentServicesOptionalParameters) (IncidentServicesResponse, *_nethttp.Response, error)
ListIncidentServices Get a list of all incident services. Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services.
func (a *IncidentServicesApi) UpdateIncidentService(ctx _context.Context, serviceId string, body IncidentServiceUpdateRequest) (IncidentServiceResponse, *_nethttp.Response, error)
UpdateIncidentService Update an existing incident service. Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update.
IncidentServicesResponse Response with a list of incident service payloads.
type IncidentServicesResponse struct {
// An array of incident services.
Data []IncidentServiceResponseData `json:"data"`
// Included related resources which the user requested.
Included []IncidentServiceIncludedItems `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentServicesResponse(data []IncidentServiceResponseData) *IncidentServicesResponse
NewIncidentServicesResponse instantiates a new IncidentServicesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentServicesResponseWithDefaults() *IncidentServicesResponse
NewIncidentServicesResponseWithDefaults instantiates a new IncidentServicesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentServicesResponse) GetData() []IncidentServiceResponseData
GetData returns the Data field value.
func (o *IncidentServicesResponse) GetDataOk() (*[]IncidentServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) GetIncluded() []IncidentServiceIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentServicesResponse) GetIncludedOk() (*[]IncidentServiceIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentServicesResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentServicesResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentServicesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentServicesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentServicesResponse) SetData(v []IncidentServiceResponseData)
SetData sets field value.
func (o *IncidentServicesResponse) SetIncluded(v []IncidentServiceIncludedItems)
SetIncluded gets a reference to the given []IncidentServiceIncludedItems and assigns it to the Included field.
func (o *IncidentServicesResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentServicesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateAttributes The incident team's attributes for a create request.
type IncidentTeamCreateAttributes struct {
// Name of the incident team.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateAttributes(name string) *IncidentTeamCreateAttributes
NewIncidentTeamCreateAttributes instantiates a new IncidentTeamCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateAttributesWithDefaults() *IncidentTeamCreateAttributes
NewIncidentTeamCreateAttributesWithDefaults instantiates a new IncidentTeamCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentTeamCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentTeamCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentTeamCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateData Incident Team data for a create request.
type IncidentTeamCreateData struct {
// The incident team's attributes for a create request.
Attributes *IncidentTeamCreateAttributes `json:"attributes,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type IncidentTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateData(typeVar IncidentTeamType) *IncidentTeamCreateData
NewIncidentTeamCreateData instantiates a new IncidentTeamCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateDataWithDefaults() *IncidentTeamCreateData
NewIncidentTeamCreateDataWithDefaults instantiates a new IncidentTeamCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateData) GetAttributes() IncidentTeamCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamCreateData) GetAttributesOk() (*IncidentTeamCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamCreateData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) GetType() IncidentTeamType
GetType returns the Type field value.
func (o *IncidentTeamCreateData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentTeamCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentTeamCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateData) SetAttributes(v IncidentTeamCreateAttributes)
SetAttributes gets a reference to the given IncidentTeamCreateAttributes and assigns it to the Attributes field.
func (o *IncidentTeamCreateData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamCreateData) SetType(v IncidentTeamType)
SetType sets field value.
func (o *IncidentTeamCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamCreateRequest Create request with an incident team payload.
type IncidentTeamCreateRequest struct {
// Incident Team data for a create request.
Data IncidentTeamCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamCreateRequest(data IncidentTeamCreateData) *IncidentTeamCreateRequest
NewIncidentTeamCreateRequest instantiates a new IncidentTeamCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamCreateRequestWithDefaults() *IncidentTeamCreateRequest
NewIncidentTeamCreateRequestWithDefaults instantiates a new IncidentTeamCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamCreateRequest) GetData() IncidentTeamCreateData
GetData returns the Data field value.
func (o *IncidentTeamCreateRequest) GetDataOk() (*IncidentTeamCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTeamCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamCreateRequest) SetData(v IncidentTeamCreateData)
SetData sets field value.
func (o *IncidentTeamCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamIncludedItems - An object related to an incident team which is present in the included payload.
type IncidentTeamIncludedItems struct {
User *User
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func UserAsIncidentTeamIncludedItems(v *User) IncidentTeamIncludedItems
UserAsIncidentTeamIncludedItems is a convenience function that returns User wrapped in IncidentTeamIncludedItems.
func (obj *IncidentTeamIncludedItems) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTeamIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTeamIncludedItems) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTeamRelationships The incident team's relationships.
type IncidentTeamRelationships struct {
// Relationship to user.
CreatedBy *RelationshipToUser `json:"created_by,omitempty"`
// Relationship to user.
LastModifiedBy *RelationshipToUser `json:"last_modified_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamRelationships() *IncidentTeamRelationships
NewIncidentTeamRelationships instantiates a new IncidentTeamRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamRelationshipsWithDefaults() *IncidentTeamRelationships
NewIncidentTeamRelationshipsWithDefaults instantiates a new IncidentTeamRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamRelationships) GetCreatedBy() RelationshipToUser
GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *IncidentTeamRelationships) GetCreatedByOk() (*RelationshipToUser, bool)
GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamRelationships) GetLastModifiedBy() RelationshipToUser
GetLastModifiedBy returns the LastModifiedBy field value if set, zero value otherwise.
func (o *IncidentTeamRelationships) GetLastModifiedByOk() (*RelationshipToUser, bool)
GetLastModifiedByOk returns a tuple with the LastModifiedBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamRelationships) HasCreatedBy() bool
HasCreatedBy returns a boolean if a field has been set.
func (o *IncidentTeamRelationships) HasLastModifiedBy() bool
HasLastModifiedBy returns a boolean if a field has been set.
func (o IncidentTeamRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamRelationships) SetCreatedBy(v RelationshipToUser)
SetCreatedBy gets a reference to the given RelationshipToUser and assigns it to the CreatedBy field.
func (o *IncidentTeamRelationships) SetLastModifiedBy(v RelationshipToUser)
SetLastModifiedBy gets a reference to the given RelationshipToUser and assigns it to the LastModifiedBy field.
func (o *IncidentTeamRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponse Response with an incident team payload.
type IncidentTeamResponse struct {
// Incident Team data from a response.
Data IncidentTeamResponseData `json:"data"`
// Included objects from relationships.
Included []IncidentTeamIncludedItems `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponse(data IncidentTeamResponseData) *IncidentTeamResponse
NewIncidentTeamResponse instantiates a new IncidentTeamResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseWithDefaults() *IncidentTeamResponse
NewIncidentTeamResponseWithDefaults instantiates a new IncidentTeamResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponse) GetData() IncidentTeamResponseData
GetData returns the Data field value.
func (o *IncidentTeamResponse) GetDataOk() (*IncidentTeamResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTeamResponse) GetIncluded() []IncidentTeamIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTeamResponse) GetIncludedOk() (*[]IncidentTeamIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o IncidentTeamResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponse) SetData(v IncidentTeamResponseData)
SetData sets field value.
func (o *IncidentTeamResponse) SetIncluded(v []IncidentTeamIncludedItems)
SetIncluded gets a reference to the given []IncidentTeamIncludedItems and assigns it to the Included field.
func (o *IncidentTeamResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponseAttributes The incident team's attributes from a response.
type IncidentTeamResponseAttributes struct {
// Timestamp of when the incident team was created.
Created *time.Time `json:"created,omitempty"`
// Timestamp of when the incident team was modified.
Modified *time.Time `json:"modified,omitempty"`
// Name of the incident team.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponseAttributes() *IncidentTeamResponseAttributes
NewIncidentTeamResponseAttributes instantiates a new IncidentTeamResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseAttributesWithDefaults() *IncidentTeamResponseAttributes
NewIncidentTeamResponseAttributesWithDefaults instantiates a new IncidentTeamResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponseAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) GetModified() time.Time
GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetModifiedOk() (*time.Time, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *IncidentTeamResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *IncidentTeamResponseAttributes) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *IncidentTeamResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o IncidentTeamResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponseAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentTeamResponseAttributes) SetModified(v time.Time)
SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentTeamResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *IncidentTeamResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamResponseData Incident Team data from a response.
type IncidentTeamResponseData struct {
// The incident team's attributes from a response.
Attributes *IncidentTeamResponseAttributes `json:"attributes,omitempty"`
// The incident team's ID.
Id *string `json:"id,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type *IncidentTeamType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamResponseData() *IncidentTeamResponseData
NewIncidentTeamResponseData instantiates a new IncidentTeamResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamResponseDataWithDefaults() *IncidentTeamResponseData
NewIncidentTeamResponseDataWithDefaults instantiates a new IncidentTeamResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamResponseData) GetAttributes() IncidentTeamResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetAttributesOk() (*IncidentTeamResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) GetType() IncidentTeamType
GetType returns the Type field value if set, zero value otherwise.
func (o *IncidentTeamResponseData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *IncidentTeamResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o IncidentTeamResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamResponseData) SetAttributes(v IncidentTeamResponseAttributes)
SetAttributes gets a reference to the given IncidentTeamResponseAttributes and assigns it to the Attributes field.
func (o *IncidentTeamResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentTeamResponseData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamResponseData) SetType(v IncidentTeamType)
SetType gets a reference to the given IncidentTeamType and assigns it to the Type field.
func (o *IncidentTeamResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamType Incident Team resource type.
type IncidentTeamType string
List of IncidentTeamType.
const (
INCIDENTTEAMTYPE_TEAMS IncidentTeamType = "teams"
)
func NewIncidentTeamTypeFromValue(v string) (*IncidentTeamType, error)
NewIncidentTeamTypeFromValue returns a pointer to a valid IncidentTeamType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTeamType) GetAllowedValues() []IncidentTeamType
GetAllowedValues reeturns the list of possible values.
func (v IncidentTeamType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTeamType) Ptr() *IncidentTeamType
Ptr returns reference to IncidentTeamType value.
func (v *IncidentTeamType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateAttributes The incident team's attributes for an update request.
type IncidentTeamUpdateAttributes struct {
// Name of the incident team.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateAttributes(name string) *IncidentTeamUpdateAttributes
NewIncidentTeamUpdateAttributes instantiates a new IncidentTeamUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateAttributesWithDefaults() *IncidentTeamUpdateAttributes
NewIncidentTeamUpdateAttributesWithDefaults instantiates a new IncidentTeamUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateAttributes) GetName() string
GetName returns the Name field value.
func (o *IncidentTeamUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o IncidentTeamUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateAttributes) SetName(v string)
SetName sets field value.
func (o *IncidentTeamUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateData Incident Team data for an update request.
type IncidentTeamUpdateData struct {
// The incident team's attributes for an update request.
Attributes *IncidentTeamUpdateAttributes `json:"attributes,omitempty"`
// The incident team's ID.
Id *string `json:"id,omitempty"`
// The incident team's relationships.
Relationships *IncidentTeamRelationships `json:"relationships,omitempty"`
// Incident Team resource type.
Type IncidentTeamType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateData(typeVar IncidentTeamType) *IncidentTeamUpdateData
NewIncidentTeamUpdateData instantiates a new IncidentTeamUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateDataWithDefaults() *IncidentTeamUpdateData
NewIncidentTeamUpdateDataWithDefaults instantiates a new IncidentTeamUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateData) GetAttributes() IncidentTeamUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetAttributesOk() (*IncidentTeamUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetRelationships() IncidentTeamRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentTeamUpdateData) GetRelationshipsOk() (*IncidentTeamRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) GetType() IncidentTeamType
GetType returns the Type field value.
func (o *IncidentTeamUpdateData) GetTypeOk() (*IncidentTeamType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentTeamUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentTeamUpdateData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *IncidentTeamUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentTeamUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateData) SetAttributes(v IncidentTeamUpdateAttributes)
SetAttributes gets a reference to the given IncidentTeamUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentTeamUpdateData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *IncidentTeamUpdateData) SetRelationships(v IncidentTeamRelationships)
SetRelationships gets a reference to the given IncidentTeamRelationships and assigns it to the Relationships field.
func (o *IncidentTeamUpdateData) SetType(v IncidentTeamType)
SetType sets field value.
func (o *IncidentTeamUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamUpdateRequest Update request with an incident team payload.
type IncidentTeamUpdateRequest struct {
// Incident Team data for an update request.
Data IncidentTeamUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamUpdateRequest(data IncidentTeamUpdateData) *IncidentTeamUpdateRequest
NewIncidentTeamUpdateRequest instantiates a new IncidentTeamUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamUpdateRequestWithDefaults() *IncidentTeamUpdateRequest
NewIncidentTeamUpdateRequestWithDefaults instantiates a new IncidentTeamUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamUpdateRequest) GetData() IncidentTeamUpdateData
GetData returns the Data field value.
func (o *IncidentTeamUpdateRequest) GetDataOk() (*IncidentTeamUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentTeamUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamUpdateRequest) SetData(v IncidentTeamUpdateData)
SetData sets field value.
func (o *IncidentTeamUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTeamsApi service type
type IncidentTeamsApi datadog.Service
func NewIncidentTeamsApi(client *datadog.APIClient) *IncidentTeamsApi
NewIncidentTeamsApi Returns NewIncidentTeamsApi.
func (a *IncidentTeamsApi) CreateIncidentTeam(ctx _context.Context, body IncidentTeamCreateRequest) (IncidentTeamResponse, *_nethttp.Response, error)
CreateIncidentTeam Create a new incident team. Creates a new incident team.
func (a *IncidentTeamsApi) DeleteIncidentTeam(ctx _context.Context, teamId string) (*_nethttp.Response, error)
DeleteIncidentTeam Delete an existing incident team. Deletes an existing incident team.
func (a *IncidentTeamsApi) GetIncidentTeam(ctx _context.Context, teamId string, o ...GetIncidentTeamOptionalParameters) (IncidentTeamResponse, *_nethttp.Response, error)
GetIncidentTeam Get details of an incident team. Get details of an incident team. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams.
func (a *IncidentTeamsApi) ListIncidentTeams(ctx _context.Context, o ...ListIncidentTeamsOptionalParameters) (IncidentTeamsResponse, *_nethttp.Response, error)
ListIncidentTeams Get a list of all incident teams. Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams.
func (a *IncidentTeamsApi) UpdateIncidentTeam(ctx _context.Context, teamId string, body IncidentTeamUpdateRequest) (IncidentTeamResponse, *_nethttp.Response, error)
UpdateIncidentTeam Update an existing incident team. Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update.
IncidentTeamsResponse Response with a list of incident team payloads.
type IncidentTeamsResponse struct {
// An array of incident teams.
Data []IncidentTeamResponseData `json:"data"`
// Included related resources which the user requested.
Included []IncidentTeamIncludedItems `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTeamsResponse(data []IncidentTeamResponseData) *IncidentTeamsResponse
NewIncidentTeamsResponse instantiates a new IncidentTeamsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTeamsResponseWithDefaults() *IncidentTeamsResponse
NewIncidentTeamsResponseWithDefaults instantiates a new IncidentTeamsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTeamsResponse) GetData() []IncidentTeamResponseData
GetData returns the Data field value.
func (o *IncidentTeamsResponse) GetDataOk() (*[]IncidentTeamResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) GetIncluded() []IncidentTeamIncludedItems
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentTeamsResponse) GetIncludedOk() (*[]IncidentTeamIncludedItems, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentTeamsResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTeamsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentTeamsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentTeamsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTeamsResponse) SetData(v []IncidentTeamResponseData)
SetData sets field value.
func (o *IncidentTeamsResponse) SetIncluded(v []IncidentTeamIncludedItems)
SetIncluded gets a reference to the given []IncidentTeamIncludedItems and assigns it to the Included field.
func (o *IncidentTeamsResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentTeamsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellCreateAttributes - The timeline cell's attributes for a create request.
type IncidentTimelineCellCreateAttributes struct {
IncidentTimelineCellMarkdownCreateAttributes *IncidentTimelineCellMarkdownCreateAttributes
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func IncidentTimelineCellMarkdownCreateAttributesAsIncidentTimelineCellCreateAttributes(v *IncidentTimelineCellMarkdownCreateAttributes) IncidentTimelineCellCreateAttributes
IncidentTimelineCellMarkdownCreateAttributesAsIncidentTimelineCellCreateAttributes is a convenience function that returns IncidentTimelineCellMarkdownCreateAttributes wrapped in IncidentTimelineCellCreateAttributes.
func (obj *IncidentTimelineCellCreateAttributes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj IncidentTimelineCellCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *IncidentTimelineCellCreateAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
IncidentTimelineCellMarkdownContentType Type of the Markdown timeline cell.
type IncidentTimelineCellMarkdownContentType string
List of IncidentTimelineCellMarkdownContentType.
const (
INCIDENTTIMELINECELLMARKDOWNCONTENTTYPE_MARKDOWN IncidentTimelineCellMarkdownContentType = "markdown"
)
func NewIncidentTimelineCellMarkdownContentTypeFromValue(v string) (*IncidentTimelineCellMarkdownContentType, error)
NewIncidentTimelineCellMarkdownContentTypeFromValue returns a pointer to a valid IncidentTimelineCellMarkdownContentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentTimelineCellMarkdownContentType) GetAllowedValues() []IncidentTimelineCellMarkdownContentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentTimelineCellMarkdownContentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentTimelineCellMarkdownContentType) Ptr() *IncidentTimelineCellMarkdownContentType
Ptr returns reference to IncidentTimelineCellMarkdownContentType value.
func (v *IncidentTimelineCellMarkdownContentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellMarkdownCreateAttributes Timeline cell data for Markdown timeline cells for a create request.
type IncidentTimelineCellMarkdownCreateAttributes struct {
// Type of the Markdown timeline cell.
CellType IncidentTimelineCellMarkdownContentType `json:"cell_type"`
// The Markdown timeline cell contents.
Content IncidentTimelineCellMarkdownCreateAttributesContent `json:"content"`
// A flag indicating whether the timeline cell is important and should be highlighted.
Important *bool `json:"important,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTimelineCellMarkdownCreateAttributes(cellType IncidentTimelineCellMarkdownContentType, content IncidentTimelineCellMarkdownCreateAttributesContent) *IncidentTimelineCellMarkdownCreateAttributes
NewIncidentTimelineCellMarkdownCreateAttributes instantiates a new IncidentTimelineCellMarkdownCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTimelineCellMarkdownCreateAttributesWithDefaults() *IncidentTimelineCellMarkdownCreateAttributes
NewIncidentTimelineCellMarkdownCreateAttributesWithDefaults instantiates a new IncidentTimelineCellMarkdownCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetCellType() IncidentTimelineCellMarkdownContentType
GetCellType returns the CellType field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetCellTypeOk() (*IncidentTimelineCellMarkdownContentType, bool)
GetCellTypeOk returns a tuple with the CellType field value and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetContent() IncidentTimelineCellMarkdownCreateAttributesContent
GetContent returns the Content field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetContentOk() (*IncidentTimelineCellMarkdownCreateAttributesContent, bool)
GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetImportant() bool
GetImportant returns the Important field value if set, zero value otherwise.
func (o *IncidentTimelineCellMarkdownCreateAttributes) GetImportantOk() (*bool, bool)
GetImportantOk returns a tuple with the Important field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributes) HasImportant() bool
HasImportant returns a boolean if a field has been set.
func (o IncidentTimelineCellMarkdownCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetCellType(v IncidentTimelineCellMarkdownContentType)
SetCellType sets field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetContent(v IncidentTimelineCellMarkdownCreateAttributesContent)
SetContent sets field value.
func (o *IncidentTimelineCellMarkdownCreateAttributes) SetImportant(v bool)
SetImportant gets a reference to the given bool and assigns it to the Important field.
func (o *IncidentTimelineCellMarkdownCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentTimelineCellMarkdownCreateAttributesContent The Markdown timeline cell contents.
type IncidentTimelineCellMarkdownCreateAttributesContent struct {
// The Markdown content of the cell.
Content *string `json:"content,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentTimelineCellMarkdownCreateAttributesContent() *IncidentTimelineCellMarkdownCreateAttributesContent
NewIncidentTimelineCellMarkdownCreateAttributesContent instantiates a new IncidentTimelineCellMarkdownCreateAttributesContent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentTimelineCellMarkdownCreateAttributesContentWithDefaults() *IncidentTimelineCellMarkdownCreateAttributesContent
NewIncidentTimelineCellMarkdownCreateAttributesContentWithDefaults instantiates a new IncidentTimelineCellMarkdownCreateAttributesContent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) GetContent() string
GetContent returns the Content field value if set, zero value otherwise.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) HasContent() bool
HasContent returns a boolean if a field has been set.
func (o IncidentTimelineCellMarkdownCreateAttributesContent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) SetContent(v string)
SetContent gets a reference to the given string and assigns it to the Content field.
func (o *IncidentTimelineCellMarkdownCreateAttributesContent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentType Incident resource type.
type IncidentType string
List of IncidentType.
const (
INCIDENTTYPE_INCIDENTS IncidentType = "incidents"
)
func NewIncidentTypeFromValue(v string) (*IncidentType, error)
NewIncidentTypeFromValue returns a pointer to a valid IncidentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *IncidentType) GetAllowedValues() []IncidentType
GetAllowedValues reeturns the list of possible values.
func (v IncidentType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v IncidentType) Ptr() *IncidentType
Ptr returns reference to IncidentType value.
func (v *IncidentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
IncidentUpdateAttributes The incident's attributes for an update request.
type IncidentUpdateAttributes struct {
// Timestamp when customers were no longer impacted by the incident.
CustomerImpactEnd datadog.NullableTime `json:"customer_impact_end,omitempty"`
// A summary of the impact customers experienced during the incident.
CustomerImpactScope *string `json:"customer_impact_scope,omitempty"`
// Timestamp when customers began being impacted by the incident.
CustomerImpactStart datadog.NullableTime `json:"customer_impact_start,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted *bool `json:"customer_impacted,omitempty"`
// Timestamp when the incident was detected.
Detected datadog.NullableTime `json:"detected,omitempty"`
// A condensed view of the user-defined fields for which to update selections.
Fields map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// Notification handles that will be notified of the incident during update.
NotificationHandles []IncidentNotificationHandle `json:"notification_handles,omitempty"`
// The title of the incident, which summarizes what happened.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateAttributes() *IncidentUpdateAttributes
NewIncidentUpdateAttributes instantiates a new IncidentUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateAttributesWithDefaults() *IncidentUpdateAttributes
NewIncidentUpdateAttributesWithDefaults instantiates a new IncidentUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateAttributes) GetCustomerImpactEnd() time.Time
GetCustomerImpactEnd returns the CustomerImpactEnd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetCustomerImpactEndOk() (*time.Time, bool)
GetCustomerImpactEndOk returns a tuple with the CustomerImpactEnd field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetCustomerImpactScope() string
GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetCustomerImpactScopeOk() (*string, bool)
GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetCustomerImpactStart() time.Time
GetCustomerImpactStart returns the CustomerImpactStart field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetCustomerImpactStartOk() (*time.Time, bool)
GetCustomerImpactStartOk returns a tuple with the CustomerImpactStart field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetCustomerImpacted() bool
GetCustomerImpacted returns the CustomerImpacted field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetCustomerImpactedOk() (*bool, bool)
GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetDetected() time.Time
GetDetected returns the Detected field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentUpdateAttributes) GetDetectedOk() (*time.Time, bool)
GetDetectedOk returns a tuple with the Detected field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *IncidentUpdateAttributes) GetFields() map[string]IncidentFieldAttributes
GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool)
GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetNotificationHandles() []IncidentNotificationHandle
GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetNotificationHandlesOk() (*[]IncidentNotificationHandle, bool)
GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *IncidentUpdateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactEnd() bool
HasCustomerImpactEnd returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactScope() bool
HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpactStart() bool
HasCustomerImpactStart returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasCustomerImpacted() bool
HasCustomerImpacted returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasDetected() bool
HasDetected returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasFields() bool
HasFields returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasNotificationHandles() bool
HasNotificationHandles returns a boolean if a field has been set.
func (o *IncidentUpdateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o IncidentUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateAttributes) SetCustomerImpactEnd(v time.Time)
SetCustomerImpactEnd gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactEnd field.
func (o *IncidentUpdateAttributes) SetCustomerImpactEndNil()
SetCustomerImpactEndNil sets the value for CustomerImpactEnd to be an explicit nil.
func (o *IncidentUpdateAttributes) SetCustomerImpactScope(v string)
SetCustomerImpactScope gets a reference to the given string and assigns it to the CustomerImpactScope field.
func (o *IncidentUpdateAttributes) SetCustomerImpactStart(v time.Time)
SetCustomerImpactStart gets a reference to the given datadog.NullableTime and assigns it to the CustomerImpactStart field.
func (o *IncidentUpdateAttributes) SetCustomerImpactStartNil()
SetCustomerImpactStartNil sets the value for CustomerImpactStart to be an explicit nil.
func (o *IncidentUpdateAttributes) SetCustomerImpacted(v bool)
SetCustomerImpacted gets a reference to the given bool and assigns it to the CustomerImpacted field.
func (o *IncidentUpdateAttributes) SetDetected(v time.Time)
SetDetected gets a reference to the given datadog.NullableTime and assigns it to the Detected field.
func (o *IncidentUpdateAttributes) SetDetectedNil()
SetDetectedNil sets the value for Detected to be an explicit nil.
func (o *IncidentUpdateAttributes) SetFields(v map[string]IncidentFieldAttributes)
SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentUpdateAttributes) SetNotificationHandles(v []IncidentNotificationHandle)
SetNotificationHandles gets a reference to the given []IncidentNotificationHandle and assigns it to the NotificationHandles field.
func (o *IncidentUpdateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *IncidentUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *IncidentUpdateAttributes) UnsetCustomerImpactEnd()
UnsetCustomerImpactEnd ensures that no value is present for CustomerImpactEnd, not even an explicit nil.
func (o *IncidentUpdateAttributes) UnsetCustomerImpactStart()
UnsetCustomerImpactStart ensures that no value is present for CustomerImpactStart, not even an explicit nil.
func (o *IncidentUpdateAttributes) UnsetDetected()
UnsetDetected ensures that no value is present for Detected, not even an explicit nil.
IncidentUpdateData Incident data for an update request.
type IncidentUpdateData struct {
// The incident's attributes for an update request.
Attributes *IncidentUpdateAttributes `json:"attributes,omitempty"`
// The team's ID.
Id string `json:"id"`
// The incident's relationships for an update request.
Relationships *IncidentUpdateRelationships `json:"relationships,omitempty"`
// Incident resource type.
Type IncidentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateData(id string, typeVar IncidentType) *IncidentUpdateData
NewIncidentUpdateData instantiates a new IncidentUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateDataWithDefaults() *IncidentUpdateData
NewIncidentUpdateDataWithDefaults instantiates a new IncidentUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateData) GetAttributes() IncidentUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *IncidentUpdateData) GetAttributesOk() (*IncidentUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetId() string
GetId returns the Id field value.
func (o *IncidentUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetRelationships() IncidentUpdateRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *IncidentUpdateData) GetRelationshipsOk() (*IncidentUpdateRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateData) GetType() IncidentType
GetType returns the Type field value.
func (o *IncidentUpdateData) GetTypeOk() (*IncidentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *IncidentUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *IncidentUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o IncidentUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateData) SetAttributes(v IncidentUpdateAttributes)
SetAttributes gets a reference to the given IncidentUpdateAttributes and assigns it to the Attributes field.
func (o *IncidentUpdateData) SetId(v string)
SetId sets field value.
func (o *IncidentUpdateData) SetRelationships(v IncidentUpdateRelationships)
SetRelationships gets a reference to the given IncidentUpdateRelationships and assigns it to the Relationships field.
func (o *IncidentUpdateData) SetType(v IncidentType)
SetType sets field value.
func (o *IncidentUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentUpdateRelationships The incident's relationships for an update request.
type IncidentUpdateRelationships struct {
// Relationship to user.
CommanderUser *NullableRelationshipToUser `json:"commander_user,omitempty"`
// A relationship reference for multiple integration metadata objects.
Integrations *RelationshipToIncidentIntegrationMetadatas `json:"integrations,omitempty"`
// A relationship reference for postmortems.
Postmortem *RelationshipToIncidentPostmortem `json:"postmortem,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateRelationships() *IncidentUpdateRelationships
NewIncidentUpdateRelationships instantiates a new IncidentUpdateRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateRelationshipsWithDefaults() *IncidentUpdateRelationships
NewIncidentUpdateRelationshipsWithDefaults instantiates a new IncidentUpdateRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser
GetCommanderUser returns the CommanderUser field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)
GetCommanderUserOk returns a tuple with the CommanderUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetIntegrationsOk() (*RelationshipToIncidentIntegrationMetadatas, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) GetPostmortem() RelationshipToIncidentPostmortem
GetPostmortem returns the Postmortem field value if set, zero value otherwise.
func (o *IncidentUpdateRelationships) GetPostmortemOk() (*RelationshipToIncidentPostmortem, bool)
GetPostmortemOk returns a tuple with the Postmortem field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentUpdateRelationships) HasCommanderUser() bool
HasCommanderUser returns a boolean if a field has been set.
func (o *IncidentUpdateRelationships) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *IncidentUpdateRelationships) HasPostmortem() bool
HasPostmortem returns a boolean if a field has been set.
func (o IncidentUpdateRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)
SetCommanderUser gets a reference to the given NullableRelationshipToUser and assigns it to the CommanderUser field.
func (o *IncidentUpdateRelationships) SetIntegrations(v RelationshipToIncidentIntegrationMetadatas)
SetIntegrations gets a reference to the given RelationshipToIncidentIntegrationMetadatas and assigns it to the Integrations field.
func (o *IncidentUpdateRelationships) SetPostmortem(v RelationshipToIncidentPostmortem)
SetPostmortem gets a reference to the given RelationshipToIncidentPostmortem and assigns it to the Postmortem field.
func (o *IncidentUpdateRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentUpdateRequest Update request for an incident.
type IncidentUpdateRequest struct {
// Incident data for an update request.
Data IncidentUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentUpdateRequest(data IncidentUpdateData) *IncidentUpdateRequest
NewIncidentUpdateRequest instantiates a new IncidentUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentUpdateRequestWithDefaults() *IncidentUpdateRequest
NewIncidentUpdateRequestWithDefaults instantiates a new IncidentUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentUpdateRequest) GetData() IncidentUpdateData
GetData returns the Data field value.
func (o *IncidentUpdateRequest) GetDataOk() (*IncidentUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o IncidentUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentUpdateRequest) SetData(v IncidentUpdateData)
SetData sets field value.
func (o *IncidentUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IncidentsApi service type
type IncidentsApi datadog.Service
func NewIncidentsApi(client *datadog.APIClient) *IncidentsApi
NewIncidentsApi Returns NewIncidentsApi.
func (a *IncidentsApi) CreateIncident(ctx _context.Context, body IncidentCreateRequest) (IncidentResponse, *_nethttp.Response, error)
CreateIncident Create an incident. Create an incident.
func (a *IncidentsApi) DeleteIncident(ctx _context.Context, incidentId string) (*_nethttp.Response, error)
DeleteIncident Delete an existing incident. Deletes an existing incident from the users organization.
func (a *IncidentsApi) GetIncident(ctx _context.Context, incidentId string, o ...GetIncidentOptionalParameters) (IncidentResponse, *_nethttp.Response, error)
GetIncident Get the details of an incident. Get the details of an incident by `incident_id`.
func (a *IncidentsApi) ListIncidentAttachments(ctx _context.Context, incidentId string, o ...ListIncidentAttachmentsOptionalParameters) (IncidentAttachmentsResponse, *_nethttp.Response, error)
ListIncidentAttachments Get a list of attachments. Get all attachments for a given incident.
func (a *IncidentsApi) ListIncidents(ctx _context.Context, o ...ListIncidentsOptionalParameters) (IncidentsResponse, *_nethttp.Response, error)
ListIncidents Get a list of incidents. Get all incidents for the user's organization.
func (a *IncidentsApi) ListIncidentsWithPagination(ctx _context.Context, o ...ListIncidentsOptionalParameters) (<-chan IncidentResponseData, func(), error)
ListIncidentsWithPagination provides a paginated version of ListIncidents returning a channel with all items.
func (a *IncidentsApi) UpdateIncident(ctx _context.Context, incidentId string, body IncidentUpdateRequest, o ...UpdateIncidentOptionalParameters) (IncidentResponse, *_nethttp.Response, error)
UpdateIncident Update an existing incident. Updates an incident. Provide only the attributes that should be updated as this request is a partial update.
func (a *IncidentsApi) UpdateIncidentAttachments(ctx _context.Context, incidentId string, body IncidentAttachmentUpdateRequest, o ...UpdateIncidentAttachmentsOptionalParameters) (IncidentAttachmentUpdateResponse, *_nethttp.Response, error)
UpdateIncidentAttachments Create, update, and delete incident attachments. The bulk update endpoint for creating, updating, and deleting attachments for a given incident.
IncidentsResponse Response with a list of incidents.
type IncidentsResponse struct {
// An array of incidents.
Data []IncidentResponseData `json:"data"`
// Included related resources that the user requested.
Included []IncidentResponseIncludedItem `json:"included,omitempty"`
// The metadata object containing pagination metadata.
Meta *IncidentResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIncidentsResponse(data []IncidentResponseData) *IncidentsResponse
NewIncidentsResponse instantiates a new IncidentsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIncidentsResponseWithDefaults() *IncidentsResponse
NewIncidentsResponseWithDefaults instantiates a new IncidentsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IncidentsResponse) GetData() []IncidentResponseData
GetData returns the Data field value.
func (o *IncidentsResponse) GetDataOk() (*[]IncidentResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o *IncidentsResponse) GetIncluded() []IncidentResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *IncidentsResponse) GetIncludedOk() (*[]IncidentResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentsResponse) GetMeta() IncidentResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *IncidentsResponse) GetMetaOk() (*IncidentResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IncidentsResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *IncidentsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o IncidentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IncidentsResponse) SetData(v []IncidentResponseData)
SetData sets field value.
func (o *IncidentsResponse) SetIncluded(v []IncidentResponseIncludedItem)
SetIncluded gets a reference to the given []IncidentResponseIncludedItem and assigns it to the Included field.
func (o *IncidentsResponse) SetMeta(v IncidentResponseMeta)
SetMeta gets a reference to the given IncidentResponseMeta and assigns it to the Meta field.
func (o *IncidentsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
IntakePayloadAccepted The payload accepted for intake.
type IntakePayloadAccepted struct {
// A list of errors.
Errors []string `json:"errors,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewIntakePayloadAccepted() *IntakePayloadAccepted
NewIntakePayloadAccepted instantiates a new IntakePayloadAccepted object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewIntakePayloadAcceptedWithDefaults() *IntakePayloadAccepted
NewIntakePayloadAcceptedWithDefaults instantiates a new IntakePayloadAccepted object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *IntakePayloadAccepted) GetErrors() []string
GetErrors returns the Errors field value if set, zero value otherwise.
func (o *IntakePayloadAccepted) GetErrorsOk() (*[]string, bool)
GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *IntakePayloadAccepted) HasErrors() bool
HasErrors returns a boolean if a field has been set.
func (o IntakePayloadAccepted) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *IntakePayloadAccepted) SetErrors(v []string)
SetErrors gets a reference to the given []string and assigns it to the Errors field.
func (o *IntakePayloadAccepted) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
KeyManagementApi service type
type KeyManagementApi datadog.Service
func NewKeyManagementApi(client *datadog.APIClient) *KeyManagementApi
NewKeyManagementApi Returns NewKeyManagementApi.
func (a *KeyManagementApi) CreateAPIKey(ctx _context.Context, body APIKeyCreateRequest) (APIKeyResponse, *_nethttp.Response, error)
CreateAPIKey Create an API key. Create an API key.
func (a *KeyManagementApi) CreateCurrentUserApplicationKey(ctx _context.Context, body ApplicationKeyCreateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
CreateCurrentUserApplicationKey Create an application key for current user. Create an application key for current user
func (a *KeyManagementApi) DeleteAPIKey(ctx _context.Context, apiKeyId string) (*_nethttp.Response, error)
DeleteAPIKey Delete an API key. Delete an API key.
func (a *KeyManagementApi) DeleteApplicationKey(ctx _context.Context, appKeyId string) (*_nethttp.Response, error)
DeleteApplicationKey Delete an application key. Delete an application key
func (a *KeyManagementApi) DeleteCurrentUserApplicationKey(ctx _context.Context, appKeyId string) (*_nethttp.Response, error)
DeleteCurrentUserApplicationKey Delete an application key owned by current user. Delete an application key owned by current user
func (a *KeyManagementApi) GetAPIKey(ctx _context.Context, apiKeyId string, o ...GetAPIKeyOptionalParameters) (APIKeyResponse, *_nethttp.Response, error)
GetAPIKey Get API key. Get an API key.
func (a *KeyManagementApi) GetApplicationKey(ctx _context.Context, appKeyId string, o ...GetApplicationKeyOptionalParameters) (ApplicationKeyResponse, *_nethttp.Response, error)
GetApplicationKey Get an application key. Get an application key for your org.
func (a *KeyManagementApi) GetCurrentUserApplicationKey(ctx _context.Context, appKeyId string) (ApplicationKeyResponse, *_nethttp.Response, error)
GetCurrentUserApplicationKey Get one application key owned by current user. Get an application key owned by current user
func (a *KeyManagementApi) ListAPIKeys(ctx _context.Context, o ...ListAPIKeysOptionalParameters) (APIKeysResponse, *_nethttp.Response, error)
ListAPIKeys Get all API keys. List all API keys available for your account.
func (a *KeyManagementApi) ListApplicationKeys(ctx _context.Context, o ...ListApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListApplicationKeys Get all application keys. List all application keys available for your org
func (a *KeyManagementApi) ListCurrentUserApplicationKeys(ctx _context.Context, o ...ListCurrentUserApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListCurrentUserApplicationKeys Get all application keys owned by current user. List all application keys available for current user
func (a *KeyManagementApi) UpdateAPIKey(ctx _context.Context, apiKeyId string, body APIKeyUpdateRequest) (APIKeyResponse, *_nethttp.Response, error)
UpdateAPIKey Edit an API key. Update an API key.
func (a *KeyManagementApi) UpdateApplicationKey(ctx _context.Context, appKeyId string, body ApplicationKeyUpdateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
UpdateApplicationKey Edit an application key. Edit an application key
func (a *KeyManagementApi) UpdateCurrentUserApplicationKey(ctx _context.Context, appKeyId string, body ApplicationKeyUpdateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
UpdateCurrentUserApplicationKey Edit an application key owned by current user. Edit an application key owned by current user
ListAPIKeysOptionalParameters holds optional parameters for ListAPIKeys.
type ListAPIKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *APIKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
FilterModifiedAtStart *string
FilterModifiedAtEnd *string
Include *string
}
func NewListAPIKeysOptionalParameters() *ListAPIKeysOptionalParameters
NewListAPIKeysOptionalParameters creates an empty struct for parameters.
func (r *ListAPIKeysOptionalParameters) WithFilter(filter string) *ListAPIKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListAPIKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListAPIKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterModifiedAtEnd(filterModifiedAtEnd string) *ListAPIKeysOptionalParameters
WithFilterModifiedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithFilterModifiedAtStart(filterModifiedAtStart string) *ListAPIKeysOptionalParameters
WithFilterModifiedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithInclude(include string) *ListAPIKeysOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListAPIKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithPageSize(pageSize int64) *ListAPIKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListAPIKeysOptionalParameters) WithSort(sort APIKeysSort) *ListAPIKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListActiveMetricConfigurationsOptionalParameters holds optional parameters for ListActiveMetricConfigurations.
type ListActiveMetricConfigurationsOptionalParameters struct {
WindowSeconds *int64
}
func NewListActiveMetricConfigurationsOptionalParameters() *ListActiveMetricConfigurationsOptionalParameters
NewListActiveMetricConfigurationsOptionalParameters creates an empty struct for parameters.
func (r *ListActiveMetricConfigurationsOptionalParameters) WithWindowSeconds(windowSeconds int64) *ListActiveMetricConfigurationsOptionalParameters
WithWindowSeconds sets the corresponding parameter name and returns the struct.
ListApplicationKeysOptionalParameters holds optional parameters for ListApplicationKeys.
type ListApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListApplicationKeysOptionalParameters() *ListApplicationKeysOptionalParameters
NewListApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListApplicationKeysOptionalParameters) WithFilter(filter string) *ListApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListApplicationKeysResponse Response for a list of application keys.
type ListApplicationKeysResponse struct {
// Array of application keys.
Data []PartialApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewListApplicationKeysResponse() *ListApplicationKeysResponse
NewListApplicationKeysResponse instantiates a new ListApplicationKeysResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewListApplicationKeysResponseWithDefaults() *ListApplicationKeysResponse
NewListApplicationKeysResponseWithDefaults instantiates a new ListApplicationKeysResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ListApplicationKeysResponse) GetData() []PartialApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *ListApplicationKeysResponse) GetDataOk() (*[]PartialApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListApplicationKeysResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *ListApplicationKeysResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ListApplicationKeysResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ListApplicationKeysResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o ListApplicationKeysResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ListApplicationKeysResponse) SetData(v []PartialApplicationKey)
SetData gets a reference to the given []PartialApplicationKey and assigns it to the Data field.
func (o *ListApplicationKeysResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *ListApplicationKeysResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ListAuditLogsOptionalParameters holds optional parameters for ListAuditLogs.
type ListAuditLogsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *AuditLogsSort
PageCursor *string
PageLimit *int32
}
func NewListAuditLogsOptionalParameters() *ListAuditLogsOptionalParameters
NewListAuditLogsOptionalParameters creates an empty struct for parameters.
func (r *ListAuditLogsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListAuditLogsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithFilterQuery(filterQuery string) *ListAuditLogsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithFilterTo(filterTo time.Time) *ListAuditLogsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithPageCursor(pageCursor string) *ListAuditLogsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithPageLimit(pageLimit int32) *ListAuditLogsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListAuditLogsOptionalParameters) WithSort(sort AuditLogsSort) *ListAuditLogsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListAuthNMappingsOptionalParameters holds optional parameters for ListAuthNMappings.
type ListAuthNMappingsOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *AuthNMappingsSort
Filter *string
}
func NewListAuthNMappingsOptionalParameters() *ListAuthNMappingsOptionalParameters
NewListAuthNMappingsOptionalParameters creates an empty struct for parameters.
func (r *ListAuthNMappingsOptionalParameters) WithFilter(filter string) *ListAuthNMappingsOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithPageNumber(pageNumber int64) *ListAuthNMappingsOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithPageSize(pageSize int64) *ListAuthNMappingsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListAuthNMappingsOptionalParameters) WithSort(sort AuthNMappingsSort) *ListAuthNMappingsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListCurrentUserApplicationKeysOptionalParameters holds optional parameters for ListCurrentUserApplicationKeys.
type ListCurrentUserApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListCurrentUserApplicationKeysOptionalParameters() *ListCurrentUserApplicationKeysOptionalParameters
NewListCurrentUserApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilter(filter string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListCurrentUserApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListCurrentUserApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListCurrentUserApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListCurrentUserApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListCurrentUserApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListEventsOptionalParameters holds optional parameters for ListEvents.
type ListEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *string
FilterTo *string
Sort *EventsSort
PageCursor *string
PageLimit *int32
}
func NewListEventsOptionalParameters() *ListEventsOptionalParameters
NewListEventsOptionalParameters creates an empty struct for parameters.
func (r *ListEventsOptionalParameters) WithFilterFrom(filterFrom string) *ListEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithFilterTo(filterTo string) *ListEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithPageCursor(pageCursor string) *ListEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListEventsOptionalParameters) WithSort(sort EventsSort) *ListEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListIncidentAttachmentsOptionalParameters holds optional parameters for ListIncidentAttachments.
type ListIncidentAttachmentsOptionalParameters struct {
Include *[]IncidentAttachmentRelatedObject
FilterAttachmentType *[]IncidentAttachmentAttachmentType
}
func NewListIncidentAttachmentsOptionalParameters() *ListIncidentAttachmentsOptionalParameters
NewListIncidentAttachmentsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentAttachmentsOptionalParameters) WithFilterAttachmentType(filterAttachmentType []IncidentAttachmentAttachmentType) *ListIncidentAttachmentsOptionalParameters
WithFilterAttachmentType sets the corresponding parameter name and returns the struct.
func (r *ListIncidentAttachmentsOptionalParameters) WithInclude(include []IncidentAttachmentRelatedObject) *ListIncidentAttachmentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
ListIncidentServicesOptionalParameters holds optional parameters for ListIncidentServices.
type ListIncidentServicesOptionalParameters struct {
Include *IncidentRelatedObject
PageSize *int64
PageOffset *int64
Filter *string
}
func NewListIncidentServicesOptionalParameters() *ListIncidentServicesOptionalParameters
NewListIncidentServicesOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentServicesOptionalParameters) WithFilter(filter string) *ListIncidentServicesOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithInclude(include IncidentRelatedObject) *ListIncidentServicesOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentServicesOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentServicesOptionalParameters) WithPageSize(pageSize int64) *ListIncidentServicesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListIncidentTeamsOptionalParameters holds optional parameters for ListIncidentTeams.
type ListIncidentTeamsOptionalParameters struct {
Include *IncidentRelatedObject
PageSize *int64
PageOffset *int64
Filter *string
}
func NewListIncidentTeamsOptionalParameters() *ListIncidentTeamsOptionalParameters
NewListIncidentTeamsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentTeamsOptionalParameters) WithFilter(filter string) *ListIncidentTeamsOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithInclude(include IncidentRelatedObject) *ListIncidentTeamsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentTeamsOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentTeamsOptionalParameters) WithPageSize(pageSize int64) *ListIncidentTeamsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListIncidentsOptionalParameters holds optional parameters for ListIncidents.
type ListIncidentsOptionalParameters struct {
Include *[]IncidentRelatedObject
PageSize *int64
PageOffset *int64
}
func NewListIncidentsOptionalParameters() *ListIncidentsOptionalParameters
NewListIncidentsOptionalParameters creates an empty struct for parameters.
func (r *ListIncidentsOptionalParameters) WithInclude(include []IncidentRelatedObject) *ListIncidentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
func (r *ListIncidentsOptionalParameters) WithPageOffset(pageOffset int64) *ListIncidentsOptionalParameters
WithPageOffset sets the corresponding parameter name and returns the struct.
func (r *ListIncidentsOptionalParameters) WithPageSize(pageSize int64) *ListIncidentsOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListLogsGetOptionalParameters holds optional parameters for ListLogsGet.
type ListLogsGetOptionalParameters struct {
FilterQuery *string
FilterIndex *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *LogsSort
PageCursor *string
PageLimit *int32
}
func NewListLogsGetOptionalParameters() *ListLogsGetOptionalParameters
NewListLogsGetOptionalParameters creates an empty struct for parameters.
func (r *ListLogsGetOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListLogsGetOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterIndex(filterIndex string) *ListLogsGetOptionalParameters
WithFilterIndex sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterQuery(filterQuery string) *ListLogsGetOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithFilterTo(filterTo time.Time) *ListLogsGetOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithPageCursor(pageCursor string) *ListLogsGetOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithPageLimit(pageLimit int32) *ListLogsGetOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListLogsGetOptionalParameters) WithSort(sort LogsSort) *ListLogsGetOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListLogsOptionalParameters holds optional parameters for ListLogs.
type ListLogsOptionalParameters struct {
Body *LogsListRequest
}
func NewListLogsOptionalParameters() *ListLogsOptionalParameters
NewListLogsOptionalParameters creates an empty struct for parameters.
func (r *ListLogsOptionalParameters) WithBody(body LogsListRequest) *ListLogsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
ListProcessesOptionalParameters holds optional parameters for ListProcesses.
type ListProcessesOptionalParameters struct {
Search *string
Tags *string
From *int64
To *int64
PageLimit *int32
PageCursor *string
}
func NewListProcessesOptionalParameters() *ListProcessesOptionalParameters
NewListProcessesOptionalParameters creates an empty struct for parameters.
func (r *ListProcessesOptionalParameters) WithFrom(from int64) *ListProcessesOptionalParameters
WithFrom sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithPageCursor(pageCursor string) *ListProcessesOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithPageLimit(pageLimit int32) *ListProcessesOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithSearch(search string) *ListProcessesOptionalParameters
WithSearch sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithTags(tags string) *ListProcessesOptionalParameters
WithTags sets the corresponding parameter name and returns the struct.
func (r *ListProcessesOptionalParameters) WithTo(to int64) *ListProcessesOptionalParameters
WithTo sets the corresponding parameter name and returns the struct.
ListRUMEventsOptionalParameters holds optional parameters for ListRUMEvents.
type ListRUMEventsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *RUMSort
PageCursor *string
PageLimit *int32
}
func NewListRUMEventsOptionalParameters() *ListRUMEventsOptionalParameters
NewListRUMEventsOptionalParameters creates an empty struct for parameters.
func (r *ListRUMEventsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListRUMEventsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithFilterQuery(filterQuery string) *ListRUMEventsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithFilterTo(filterTo time.Time) *ListRUMEventsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithPageCursor(pageCursor string) *ListRUMEventsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithPageLimit(pageLimit int32) *ListRUMEventsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListRUMEventsOptionalParameters) WithSort(sort RUMSort) *ListRUMEventsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListRoleUsersOptionalParameters holds optional parameters for ListRoleUsers.
type ListRoleUsersOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *string
Filter *string
}
func NewListRoleUsersOptionalParameters() *ListRoleUsersOptionalParameters
NewListRoleUsersOptionalParameters creates an empty struct for parameters.
func (r *ListRoleUsersOptionalParameters) WithFilter(filter string) *ListRoleUsersOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithPageNumber(pageNumber int64) *ListRoleUsersOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithPageSize(pageSize int64) *ListRoleUsersOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListRoleUsersOptionalParameters) WithSort(sort string) *ListRoleUsersOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListRolesOptionalParameters holds optional parameters for ListRoles.
type ListRolesOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *RolesSort
Filter *string
}
func NewListRolesOptionalParameters() *ListRolesOptionalParameters
NewListRolesOptionalParameters creates an empty struct for parameters.
func (r *ListRolesOptionalParameters) WithFilter(filter string) *ListRolesOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithPageNumber(pageNumber int64) *ListRolesOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithPageSize(pageSize int64) *ListRolesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListRolesOptionalParameters) WithSort(sort RolesSort) *ListRolesOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListSecurityMonitoringRulesOptionalParameters holds optional parameters for ListSecurityMonitoringRules.
type ListSecurityMonitoringRulesOptionalParameters struct {
PageSize *int64
PageNumber *int64
}
func NewListSecurityMonitoringRulesOptionalParameters() *ListSecurityMonitoringRulesOptionalParameters
NewListSecurityMonitoringRulesOptionalParameters creates an empty struct for parameters.
func (r *ListSecurityMonitoringRulesOptionalParameters) WithPageNumber(pageNumber int64) *ListSecurityMonitoringRulesOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringRulesOptionalParameters) WithPageSize(pageSize int64) *ListSecurityMonitoringRulesOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
ListSecurityMonitoringSignalsOptionalParameters holds optional parameters for ListSecurityMonitoringSignals.
type ListSecurityMonitoringSignalsOptionalParameters struct {
FilterQuery *string
FilterFrom *time.Time
FilterTo *time.Time
Sort *SecurityMonitoringSignalsSort
PageCursor *string
PageLimit *int32
}
func NewListSecurityMonitoringSignalsOptionalParameters() *ListSecurityMonitoringSignalsOptionalParameters
NewListSecurityMonitoringSignalsOptionalParameters creates an empty struct for parameters.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterFrom(filterFrom time.Time) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterFrom sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterQuery(filterQuery string) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterQuery sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithFilterTo(filterTo time.Time) *ListSecurityMonitoringSignalsOptionalParameters
WithFilterTo sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithPageCursor(pageCursor string) *ListSecurityMonitoringSignalsOptionalParameters
WithPageCursor sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithPageLimit(pageLimit int32) *ListSecurityMonitoringSignalsOptionalParameters
WithPageLimit sets the corresponding parameter name and returns the struct.
func (r *ListSecurityMonitoringSignalsOptionalParameters) WithSort(sort SecurityMonitoringSignalsSort) *ListSecurityMonitoringSignalsOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListServiceAccountApplicationKeysOptionalParameters holds optional parameters for ListServiceAccountApplicationKeys.
type ListServiceAccountApplicationKeysOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *ApplicationKeysSort
Filter *string
FilterCreatedAtStart *string
FilterCreatedAtEnd *string
}
func NewListServiceAccountApplicationKeysOptionalParameters() *ListServiceAccountApplicationKeysOptionalParameters
NewListServiceAccountApplicationKeysOptionalParameters creates an empty struct for parameters.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilter(filter string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilterCreatedAtEnd(filterCreatedAtEnd string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilterCreatedAtEnd sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithFilterCreatedAtStart(filterCreatedAtStart string) *ListServiceAccountApplicationKeysOptionalParameters
WithFilterCreatedAtStart sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithPageNumber(pageNumber int64) *ListServiceAccountApplicationKeysOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithPageSize(pageSize int64) *ListServiceAccountApplicationKeysOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListServiceAccountApplicationKeysOptionalParameters) WithSort(sort ApplicationKeysSort) *ListServiceAccountApplicationKeysOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
ListTagConfigurationsOptionalParameters holds optional parameters for ListTagConfigurations.
type ListTagConfigurationsOptionalParameters struct {
FilterConfigured *bool
FilterTagsConfigured *string
FilterMetricType *MetricTagConfigurationMetricTypes
FilterIncludePercentiles *bool
FilterQueried *bool
FilterTags *string
WindowSeconds *int64
}
func NewListTagConfigurationsOptionalParameters() *ListTagConfigurationsOptionalParameters
NewListTagConfigurationsOptionalParameters creates an empty struct for parameters.
func (r *ListTagConfigurationsOptionalParameters) WithFilterConfigured(filterConfigured bool) *ListTagConfigurationsOptionalParameters
WithFilterConfigured sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterIncludePercentiles(filterIncludePercentiles bool) *ListTagConfigurationsOptionalParameters
WithFilterIncludePercentiles sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterMetricType(filterMetricType MetricTagConfigurationMetricTypes) *ListTagConfigurationsOptionalParameters
WithFilterMetricType sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterQueried(filterQueried bool) *ListTagConfigurationsOptionalParameters
WithFilterQueried sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterTags(filterTags string) *ListTagConfigurationsOptionalParameters
WithFilterTags sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithFilterTagsConfigured(filterTagsConfigured string) *ListTagConfigurationsOptionalParameters
WithFilterTagsConfigured sets the corresponding parameter name and returns the struct.
func (r *ListTagConfigurationsOptionalParameters) WithWindowSeconds(windowSeconds int64) *ListTagConfigurationsOptionalParameters
WithWindowSeconds sets the corresponding parameter name and returns the struct.
ListUsersOptionalParameters holds optional parameters for ListUsers.
type ListUsersOptionalParameters struct {
PageSize *int64
PageNumber *int64
Sort *string
SortDir *QuerySortOrder
Filter *string
FilterStatus *string
}
func NewListUsersOptionalParameters() *ListUsersOptionalParameters
NewListUsersOptionalParameters creates an empty struct for parameters.
func (r *ListUsersOptionalParameters) WithFilter(filter string) *ListUsersOptionalParameters
WithFilter sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithFilterStatus(filterStatus string) *ListUsersOptionalParameters
WithFilterStatus sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithPageNumber(pageNumber int64) *ListUsersOptionalParameters
WithPageNumber sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithPageSize(pageSize int64) *ListUsersOptionalParameters
WithPageSize sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithSort(sort string) *ListUsersOptionalParameters
WithSort sets the corresponding parameter name and returns the struct.
func (r *ListUsersOptionalParameters) WithSortDir(sortDir QuerySortOrder) *ListUsersOptionalParameters
WithSortDir sets the corresponding parameter name and returns the struct.
Log Object description of a log after being processed and stored by Datadog.
type Log struct {
// JSON object containing all log attributes and their associated values.
Attributes *LogAttributes `json:"attributes,omitempty"`
// Unique ID of the Log.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *LogType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLog() *Log
NewLog instantiates a new Log object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogWithDefaults() *Log
NewLogWithDefaults instantiates a new Log object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Log) GetAttributes() LogAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Log) GetAttributesOk() (*LogAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Log) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) GetType() LogType
GetType returns the Type field value if set, zero value otherwise.
func (o *Log) GetTypeOk() (*LogType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Log) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Log) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Log) HasType() bool
HasType returns a boolean if a field has been set.
func (o Log) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Log) SetAttributes(v LogAttributes)
SetAttributes gets a reference to the given LogAttributes and assigns it to the Attributes field.
func (o *Log) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Log) SetType(v LogType)
SetType gets a reference to the given LogType and assigns it to the Type field.
func (o *Log) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogAttributes JSON object containing all log attributes and their associated values.
type LogAttributes struct {
// JSON object of attributes from your log.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// Name of the machine from where the logs are being sent.
Host *string `json:"host,omitempty"`
// The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes)
// of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry.
// That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.
Message *string `json:"message,omitempty"`
// The name of the application or service generating the log events.
// It is used to switch from Logs to APM, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Status of the message associated with your log.
Status *string `json:"status,omitempty"`
// Array of tags associated with your log.
Tags []string `json:"tags,omitempty"`
// Timestamp of your log.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogAttributes() *LogAttributes
NewLogAttributes instantiates a new LogAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogAttributesWithDefaults() *LogAttributes
NewLogAttributesWithDefaults instantiates a new LogAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetHost() string
GetHost returns the Host field value if set, zero value otherwise.
func (o *LogAttributes) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *LogAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *LogAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *LogAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *LogAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *LogAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogAttributes) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *LogAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *LogAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *LogAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *LogAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *LogAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o LogAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *LogAttributes) SetHost(v string)
SetHost gets a reference to the given string and assigns it to the Host field.
func (o *LogAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *LogAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *LogAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *LogAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *LogAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *LogAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogType Type of the event.
type LogType string
List of LogType.
const (
LOGTYPE_LOG LogType = "log"
)
func NewLogTypeFromValue(v string) (*LogType, error)
NewLogTypeFromValue returns a pointer to a valid LogType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogType) GetAllowedValues() []LogType
GetAllowedValues reeturns the list of possible values.
func (v LogType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogType) Ptr() *LogType
Ptr returns reference to LogType value.
func (v *LogType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregateBucket A bucket values
type LogsAggregateBucket struct {
// The key, value pairs for each group by
By map[string]string `json:"by,omitempty"`
// A map of the metric name -> value for regular compute or list of values for a timeseries
Computes map[string]LogsAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateBucket() *LogsAggregateBucket
NewLogsAggregateBucket instantiates a new LogsAggregateBucket object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketWithDefaults() *LogsAggregateBucket
NewLogsAggregateBucketWithDefaults instantiates a new LogsAggregateBucket object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateBucket) GetBy() map[string]string
GetBy returns the By field value if set, zero value otherwise.
func (o *LogsAggregateBucket) GetByOk() (*map[string]string, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucket) GetComputes() map[string]LogsAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *LogsAggregateBucket) GetComputesOk() (*map[string]LogsAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucket) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *LogsAggregateBucket) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o LogsAggregateBucket) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucket) SetBy(v map[string]string)
SetBy gets a reference to the given map[string]string and assigns it to the By field.
func (o *LogsAggregateBucket) SetComputes(v map[string]LogsAggregateBucketValue)
SetComputes gets a reference to the given map[string]LogsAggregateBucketValue and assigns it to the Computes field.
func (o *LogsAggregateBucket) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateBucketValue - A bucket value, can be either a timeseries or a single value
type LogsAggregateBucketValue struct {
LogsAggregateBucketValueSingleString *string
LogsAggregateBucketValueSingleNumber *float64
LogsAggregateBucketValueTimeseries *LogsAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsAggregateBucketValueSingleNumberAsLogsAggregateBucketValue(v *float64) LogsAggregateBucketValue
LogsAggregateBucketValueSingleNumberAsLogsAggregateBucketValue is a convenience function that returns float64 wrapped in LogsAggregateBucketValue.
func LogsAggregateBucketValueSingleStringAsLogsAggregateBucketValue(v *string) LogsAggregateBucketValue
LogsAggregateBucketValueSingleStringAsLogsAggregateBucketValue is a convenience function that returns string wrapped in LogsAggregateBucketValue.
func LogsAggregateBucketValueTimeseriesAsLogsAggregateBucketValue(v *LogsAggregateBucketValueTimeseries) LogsAggregateBucketValue
LogsAggregateBucketValueTimeseriesAsLogsAggregateBucketValue is a convenience function that returns LogsAggregateBucketValueTimeseries wrapped in LogsAggregateBucketValue.
func (obj *LogsAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsAggregateBucketValueTimeseries A timeseries array
type LogsAggregateBucketValueTimeseries struct {
Items []LogsAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewLogsAggregateBucketValueTimeseries() *LogsAggregateBucketValueTimeseries
NewLogsAggregateBucketValueTimeseries instantiates a new LogsAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketValueTimeseriesWithDefaults() *LogsAggregateBucketValueTimeseries
NewLogsAggregateBucketValueTimeseriesWithDefaults instantiates a new LogsAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o LogsAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateBucketValueTimeseriesPoint A timeseries point
type LogsAggregateBucketValueTimeseriesPoint struct {
// The time value for this point
Time *string `json:"time,omitempty"`
// The value for this point
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateBucketValueTimeseriesPoint() *LogsAggregateBucketValueTimeseriesPoint
NewLogsAggregateBucketValueTimeseriesPoint instantiates a new LogsAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateBucketValueTimeseriesPointWithDefaults() *LogsAggregateBucketValueTimeseriesPoint
NewLogsAggregateBucketValueTimeseriesPointWithDefaults instantiates a new LogsAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetTime() string
GetTime returns the Time field value if set, zero value otherwise.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetTimeOk() (*string, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *LogsAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *LogsAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o LogsAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateBucketValueTimeseriesPoint) SetTime(v string)
SetTime gets a reference to the given string and assigns it to the Time field.
func (o *LogsAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *LogsAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateRequest The object sent with the request to retrieve a list of logs from your organization.
type LogsAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []LogsCompute `json:"compute,omitempty"`
// The search and filter query settings
Filter *LogsQueryFilter `json:"filter,omitempty"`
// The rules for the group by
GroupBy []LogsGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *LogsQueryOptions `json:"options,omitempty"`
// Paging settings
Page *LogsAggregateRequestPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateRequest() *LogsAggregateRequest
NewLogsAggregateRequest instantiates a new LogsAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateRequestWithDefaults() *LogsAggregateRequest
NewLogsAggregateRequestWithDefaults instantiates a new LogsAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateRequest) GetCompute() []LogsCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetComputeOk() (*[]LogsCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetFilter() LogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetFilterOk() (*LogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetGroupBy() []LogsGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetGroupByOk() (*[]LogsGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetOptions() LogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetOptionsOk() (*LogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) GetPage() LogsAggregateRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsAggregateRequest) GetPageOk() (*LogsAggregateRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *LogsAggregateRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o LogsAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateRequest) SetCompute(v []LogsCompute)
SetCompute gets a reference to the given []LogsCompute and assigns it to the Compute field.
func (o *LogsAggregateRequest) SetFilter(v LogsQueryFilter)
SetFilter gets a reference to the given LogsQueryFilter and assigns it to the Filter field.
func (o *LogsAggregateRequest) SetGroupBy(v []LogsGroupBy)
SetGroupBy gets a reference to the given []LogsGroupBy and assigns it to the GroupBy field.
func (o *LogsAggregateRequest) SetOptions(v LogsQueryOptions)
SetOptions gets a reference to the given LogsQueryOptions and assigns it to the Options field.
func (o *LogsAggregateRequest) SetPage(v LogsAggregateRequestPage)
SetPage gets a reference to the given LogsAggregateRequestPage and assigns it to the Page field.
func (o *LogsAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateRequestPage Paging settings
type LogsAggregateRequestPage struct {
// The returned paging point to use to get the next results
Cursor *string `json:"cursor,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateRequestPage() *LogsAggregateRequestPage
NewLogsAggregateRequestPage instantiates a new LogsAggregateRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateRequestPageWithDefaults() *LogsAggregateRequestPage
NewLogsAggregateRequestPageWithDefaults instantiates a new LogsAggregateRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *LogsAggregateRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o LogsAggregateRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *LogsAggregateRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponse The response object for the logs aggregate API endpoint
type LogsAggregateResponse struct {
// The query results
Data *LogsAggregateResponseData `json:"data,omitempty"`
// The metadata associated with a request
Meta *LogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateResponse() *LogsAggregateResponse
NewLogsAggregateResponse instantiates a new LogsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateResponseWithDefaults() *LogsAggregateResponse
NewLogsAggregateResponseWithDefaults instantiates a new LogsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateResponse) GetData() LogsAggregateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsAggregateResponse) GetDataOk() (*LogsAggregateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponse) GetMeta() LogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *LogsAggregateResponse) GetMetaOk() (*LogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *LogsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o LogsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateResponse) SetData(v LogsAggregateResponseData)
SetData gets a reference to the given LogsAggregateResponseData and assigns it to the Data field.
func (o *LogsAggregateResponse) SetMeta(v LogsResponseMetadata)
SetMeta gets a reference to the given LogsResponseMetadata and assigns it to the Meta field.
func (o *LogsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponseData The query results
type LogsAggregateResponseData struct {
// The list of matching buckets, one item per bucket
Buckets []LogsAggregateBucket `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateResponseData() *LogsAggregateResponseData
NewLogsAggregateResponseData instantiates a new LogsAggregateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateResponseDataWithDefaults() *LogsAggregateResponseData
NewLogsAggregateResponseDataWithDefaults instantiates a new LogsAggregateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateResponseData) GetBuckets() []LogsAggregateBucket
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *LogsAggregateResponseData) GetBucketsOk() (*[]LogsAggregateBucket, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateResponseData) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o LogsAggregateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateResponseData) SetBuckets(v []LogsAggregateBucket)
SetBuckets gets a reference to the given []LogsAggregateBucket and assigns it to the Buckets field.
func (o *LogsAggregateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateResponseStatus The status of the response
type LogsAggregateResponseStatus string
List of LogsAggregateResponseStatus.
const (
LOGSAGGREGATERESPONSESTATUS_DONE LogsAggregateResponseStatus = "done"
LOGSAGGREGATERESPONSESTATUS_TIMEOUT LogsAggregateResponseStatus = "timeout"
)
func NewLogsAggregateResponseStatusFromValue(v string) (*LogsAggregateResponseStatus, error)
NewLogsAggregateResponseStatusFromValue returns a pointer to a valid LogsAggregateResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregateResponseStatus) GetAllowedValues() []LogsAggregateResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregateResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregateResponseStatus) Ptr() *LogsAggregateResponseStatus
Ptr returns reference to LogsAggregateResponseStatus value.
func (v *LogsAggregateResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregateSort A sort rule
type LogsAggregateSort struct {
// An aggregation function
Aggregation *LogsAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`)
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending
Order *LogsSortOrder `json:"order,omitempty"`
// The type of sorting algorithm
Type *LogsAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsAggregateSort() *LogsAggregateSort
NewLogsAggregateSort instantiates a new LogsAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsAggregateSortWithDefaults() *LogsAggregateSort
NewLogsAggregateSortWithDefaults instantiates a new LogsAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsAggregateSort) GetAggregation() LogsAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetAggregationOk() (*LogsAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetOrder() LogsSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetOrderOk() (*LogsSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) GetType() LogsAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsAggregateSort) GetTypeOk() (*LogsAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *LogsAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsAggregateSort) SetAggregation(v LogsAggregationFunction)
SetAggregation gets a reference to the given LogsAggregationFunction and assigns it to the Aggregation field.
func (o *LogsAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *LogsAggregateSort) SetOrder(v LogsSortOrder)
SetOrder gets a reference to the given LogsSortOrder and assigns it to the Order field.
func (o *LogsAggregateSort) SetType(v LogsAggregateSortType)
SetType gets a reference to the given LogsAggregateSortType and assigns it to the Type field.
func (o *LogsAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsAggregateSortType The type of sorting algorithm
type LogsAggregateSortType string
List of LogsAggregateSortType.
const (
LOGSAGGREGATESORTTYPE_ALPHABETICAL LogsAggregateSortType = "alphabetical"
LOGSAGGREGATESORTTYPE_MEASURE LogsAggregateSortType = "measure"
)
func NewLogsAggregateSortTypeFromValue(v string) (*LogsAggregateSortType, error)
NewLogsAggregateSortTypeFromValue returns a pointer to a valid LogsAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregateSortType) GetAllowedValues() []LogsAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregateSortType) Ptr() *LogsAggregateSortType
Ptr returns reference to LogsAggregateSortType value.
func (v *LogsAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsAggregationFunction An aggregation function
type LogsAggregationFunction string
List of LogsAggregationFunction.
const (
LOGSAGGREGATIONFUNCTION_COUNT LogsAggregationFunction = "count"
LOGSAGGREGATIONFUNCTION_CARDINALITY LogsAggregationFunction = "cardinality"
LOGSAGGREGATIONFUNCTION_PERCENTILE_75 LogsAggregationFunction = "pc75"
LOGSAGGREGATIONFUNCTION_PERCENTILE_90 LogsAggregationFunction = "pc90"
LOGSAGGREGATIONFUNCTION_PERCENTILE_95 LogsAggregationFunction = "pc95"
LOGSAGGREGATIONFUNCTION_PERCENTILE_98 LogsAggregationFunction = "pc98"
LOGSAGGREGATIONFUNCTION_PERCENTILE_99 LogsAggregationFunction = "pc99"
LOGSAGGREGATIONFUNCTION_SUM LogsAggregationFunction = "sum"
LOGSAGGREGATIONFUNCTION_MIN LogsAggregationFunction = "min"
LOGSAGGREGATIONFUNCTION_MAX LogsAggregationFunction = "max"
LOGSAGGREGATIONFUNCTION_AVG LogsAggregationFunction = "avg"
LOGSAGGREGATIONFUNCTION_MEDIAN LogsAggregationFunction = "median"
)
func NewLogsAggregationFunctionFromValue(v string) (*LogsAggregationFunction, error)
NewLogsAggregationFunctionFromValue returns a pointer to a valid LogsAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsAggregationFunction) GetAllowedValues() []LogsAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v LogsAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsAggregationFunction) Ptr() *LogsAggregationFunction
Ptr returns reference to LogsAggregationFunction value.
func (v *LogsAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsApi service type
type LogsApi datadog.Service
func NewLogsApi(client *datadog.APIClient) *LogsApi
NewLogsApi Returns NewLogsApi.
func (a *LogsApi) AggregateLogs(ctx _context.Context, body LogsAggregateRequest) (LogsAggregateResponse, *_nethttp.Response, error)
AggregateLogs Aggregate events. The API endpoint to aggregate events into buckets and compute metrics and timeseries.
func (a *LogsApi) ListLogs(ctx _context.Context, o ...ListLogsOptionalParameters) (LogsListResponse, *_nethttp.Response, error)
ListLogs Search logs. List endpoint returns logs that match a log search query. [Results are paginated][1].
Use this endpoint to build complex logs filtering and search.
**If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].**
[1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives
func (a *LogsApi) ListLogsGet(ctx _context.Context, o ...ListLogsGetOptionalParameters) (LogsListResponse, *_nethttp.Response, error)
ListLogsGet Get a list of logs. List endpoint returns logs that match a log search query. [Results are paginated][1].
Use this endpoint to see your latest logs.
**If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].**
[1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives
func (a *LogsApi) ListLogsGetWithPagination(ctx _context.Context, o ...ListLogsGetOptionalParameters) (<-chan Log, func(), error)
ListLogsGetWithPagination provides a paginated version of ListLogsGet returning a channel with all items.
func (a *LogsApi) ListLogsWithPagination(ctx _context.Context, o ...ListLogsOptionalParameters) (<-chan Log, func(), error)
ListLogsWithPagination provides a paginated version of ListLogs returning a channel with all items.
func (a *LogsApi) SubmitLog(ctx _context.Context, body []HTTPLogItem, o ...SubmitLogOptionalParameters) (interface{}, *_nethttp.Response, error)
SubmitLog Send logs. Send your logs to your Datadog platform over HTTP. Limits per HTTP request are:
- Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries
Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx.
Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs.
The status codes answered by the HTTP API are: - 202: Accepted: the request has been accepted for processing - 400: Bad request (likely an issue in the payload formatting) - 401: Unauthorized (likely a missing API Key) - 403: Permission issue (likely using an invalid API Key) - 408: Request Timeout, request should be retried after some time - 413: Payload too large (batch is above 5MB uncompressed) - 429: Too Many Requests, request should be retried after some time - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time
LogsArchive The logs archive.
type LogsArchive struct {
// The definition of an archive.
Data *LogsArchiveDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchive() *LogsArchive
NewLogsArchive instantiates a new LogsArchive object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveWithDefaults() *LogsArchive
NewLogsArchiveWithDefaults instantiates a new LogsArchive object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchive) GetData() LogsArchiveDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchive) GetDataOk() (*LogsArchiveDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchive) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchive) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchive) SetData(v LogsArchiveDefinition)
SetData gets a reference to the given LogsArchiveDefinition and assigns it to the Data field.
func (o *LogsArchive) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveAttributes The attributes associated with the archive.
type LogsArchiveAttributes struct {
// An archive's destination.
Destination NullableLogsArchiveDestination `json:"destination"`
// To store the tags in the archive, set the value "true".
// If it is set to "false", the tags will be deleted when the logs are sent to the archive.
IncludeTags *bool `json:"include_tags,omitempty"`
// The archive name.
Name string `json:"name"`
// The archive query/filter. Logs matching this query are included in the archive.
Query string `json:"query"`
// Maximum scan size for rehydration from this archive.
RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"`
// An array of tags to add to rehydrated logs from an archive.
RehydrationTags []string `json:"rehydration_tags,omitempty"`
// The state of the archive.
State *LogsArchiveState `json:"state,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveAttributes(destination NullableLogsArchiveDestination, name string, query string) *LogsArchiveAttributes
NewLogsArchiveAttributes instantiates a new LogsArchiveAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveAttributesWithDefaults() *LogsArchiveAttributes
NewLogsArchiveAttributesWithDefaults instantiates a new LogsArchiveAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveAttributes) GetDestination() LogsArchiveDestination
GetDestination returns the Destination field value. If the value is explicit nil, the zero value for LogsArchiveDestination will be returned.
func (o *LogsArchiveAttributes) GetDestinationOk() (*LogsArchiveDestination, bool)
GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveAttributes) GetIncludeTags() bool
GetIncludeTags returns the IncludeTags field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetIncludeTagsOk() (*bool, bool)
GetIncludeTagsOk returns a tuple with the IncludeTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetName() string
GetName returns the Name field value.
func (o *LogsArchiveAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *LogsArchiveAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetRehydrationMaxScanSizeInGb() int64
GetRehydrationMaxScanSizeInGb returns the RehydrationMaxScanSizeInGb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LogsArchiveAttributes) GetRehydrationMaxScanSizeInGbOk() (*int64, bool)
GetRehydrationMaxScanSizeInGbOk returns a tuple with the RehydrationMaxScanSizeInGb field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveAttributes) GetRehydrationTags() []string
GetRehydrationTags returns the RehydrationTags field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetRehydrationTagsOk() (*[]string, bool)
GetRehydrationTagsOk returns a tuple with the RehydrationTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) GetState() LogsArchiveState
GetState returns the State field value if set, zero value otherwise.
func (o *LogsArchiveAttributes) GetStateOk() (*LogsArchiveState, bool)
GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveAttributes) HasIncludeTags() bool
HasIncludeTags returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasRehydrationMaxScanSizeInGb() bool
HasRehydrationMaxScanSizeInGb returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasRehydrationTags() bool
HasRehydrationTags returns a boolean if a field has been set.
func (o *LogsArchiveAttributes) HasState() bool
HasState returns a boolean if a field has been set.
func (o LogsArchiveAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveAttributes) SetDestination(v LogsArchiveDestination)
SetDestination sets field value.
func (o *LogsArchiveAttributes) SetIncludeTags(v bool)
SetIncludeTags gets a reference to the given bool and assigns it to the IncludeTags field.
func (o *LogsArchiveAttributes) SetName(v string)
SetName sets field value.
func (o *LogsArchiveAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *LogsArchiveAttributes) SetRehydrationMaxScanSizeInGb(v int64)
SetRehydrationMaxScanSizeInGb gets a reference to the given datadog.NullableInt64 and assigns it to the RehydrationMaxScanSizeInGb field.
func (o *LogsArchiveAttributes) SetRehydrationMaxScanSizeInGbNil()
SetRehydrationMaxScanSizeInGbNil sets the value for RehydrationMaxScanSizeInGb to be an explicit nil.
func (o *LogsArchiveAttributes) SetRehydrationTags(v []string)
SetRehydrationTags gets a reference to the given []string and assigns it to the RehydrationTags field.
func (o *LogsArchiveAttributes) SetState(v LogsArchiveState)
SetState gets a reference to the given LogsArchiveState and assigns it to the State field.
func (o *LogsArchiveAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *LogsArchiveAttributes) UnsetRehydrationMaxScanSizeInGb()
UnsetRehydrationMaxScanSizeInGb ensures that no value is present for RehydrationMaxScanSizeInGb, not even an explicit nil.
LogsArchiveCreateRequest The logs archive.
type LogsArchiveCreateRequest struct {
// The definition of an archive.
Data *LogsArchiveCreateRequestDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequest() *LogsArchiveCreateRequest
NewLogsArchiveCreateRequest instantiates a new LogsArchiveCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestWithDefaults() *LogsArchiveCreateRequest
NewLogsArchiveCreateRequestWithDefaults instantiates a new LogsArchiveCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequest) GetData() LogsArchiveCreateRequestDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequest) GetDataOk() (*LogsArchiveCreateRequestDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequest) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchiveCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequest) SetData(v LogsArchiveCreateRequestDefinition)
SetData gets a reference to the given LogsArchiveCreateRequestDefinition and assigns it to the Data field.
func (o *LogsArchiveCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveCreateRequestAttributes The attributes associated with the archive.
type LogsArchiveCreateRequestAttributes struct {
// An archive's destination.
Destination LogsArchiveCreateRequestDestination `json:"destination"`
// To store the tags in the archive, set the value "true".
// If it is set to "false", the tags will be deleted when the logs are sent to the archive.
IncludeTags *bool `json:"include_tags,omitempty"`
// The archive name.
Name string `json:"name"`
// The archive query/filter. Logs matching this query are included in the archive.
Query string `json:"query"`
// Maximum scan size for rehydration from this archive.
RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"`
// An array of tags to add to rehydrated logs from an archive.
RehydrationTags []string `json:"rehydration_tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequestAttributes(destination LogsArchiveCreateRequestDestination, name string, query string) *LogsArchiveCreateRequestAttributes
NewLogsArchiveCreateRequestAttributes instantiates a new LogsArchiveCreateRequestAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestAttributesWithDefaults() *LogsArchiveCreateRequestAttributes
NewLogsArchiveCreateRequestAttributesWithDefaults instantiates a new LogsArchiveCreateRequestAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequestAttributes) GetDestination() LogsArchiveCreateRequestDestination
GetDestination returns the Destination field value.
func (o *LogsArchiveCreateRequestAttributes) GetDestinationOk() (*LogsArchiveCreateRequestDestination, bool)
GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetIncludeTags() bool
GetIncludeTags returns the IncludeTags field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestAttributes) GetIncludeTagsOk() (*bool, bool)
GetIncludeTagsOk returns a tuple with the IncludeTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetName() string
GetName returns the Name field value.
func (o *LogsArchiveCreateRequestAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *LogsArchiveCreateRequestAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationMaxScanSizeInGb() int64
GetRehydrationMaxScanSizeInGb returns the RehydrationMaxScanSizeInGb field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationMaxScanSizeInGbOk() (*int64, bool)
GetRehydrationMaxScanSizeInGbOk returns a tuple with the RehydrationMaxScanSizeInGb field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationTags() []string
GetRehydrationTags returns the RehydrationTags field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestAttributes) GetRehydrationTagsOk() (*[]string, bool)
GetRehydrationTagsOk returns a tuple with the RehydrationTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestAttributes) HasIncludeTags() bool
HasIncludeTags returns a boolean if a field has been set.
func (o *LogsArchiveCreateRequestAttributes) HasRehydrationMaxScanSizeInGb() bool
HasRehydrationMaxScanSizeInGb returns a boolean if a field has been set.
func (o *LogsArchiveCreateRequestAttributes) HasRehydrationTags() bool
HasRehydrationTags returns a boolean if a field has been set.
func (o LogsArchiveCreateRequestAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequestAttributes) SetDestination(v LogsArchiveCreateRequestDestination)
SetDestination sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetIncludeTags(v bool)
SetIncludeTags gets a reference to the given bool and assigns it to the IncludeTags field.
func (o *LogsArchiveCreateRequestAttributes) SetName(v string)
SetName sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationMaxScanSizeInGb(v int64)
SetRehydrationMaxScanSizeInGb gets a reference to the given datadog.NullableInt64 and assigns it to the RehydrationMaxScanSizeInGb field.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationMaxScanSizeInGbNil()
SetRehydrationMaxScanSizeInGbNil sets the value for RehydrationMaxScanSizeInGb to be an explicit nil.
func (o *LogsArchiveCreateRequestAttributes) SetRehydrationTags(v []string)
SetRehydrationTags gets a reference to the given []string and assigns it to the RehydrationTags field.
func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *LogsArchiveCreateRequestAttributes) UnsetRehydrationMaxScanSizeInGb()
UnsetRehydrationMaxScanSizeInGb ensures that no value is present for RehydrationMaxScanSizeInGb, not even an explicit nil.
LogsArchiveCreateRequestDefinition The definition of an archive.
type LogsArchiveCreateRequestDefinition struct {
// The attributes associated with the archive.
Attributes *LogsArchiveCreateRequestAttributes `json:"attributes,omitempty"`
// The type of the resource. The value should always be archives.
Type string `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveCreateRequestDefinition(typeVar string) *LogsArchiveCreateRequestDefinition
NewLogsArchiveCreateRequestDefinition instantiates a new LogsArchiveCreateRequestDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveCreateRequestDefinitionWithDefaults() *LogsArchiveCreateRequestDefinition
NewLogsArchiveCreateRequestDefinitionWithDefaults instantiates a new LogsArchiveCreateRequestDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveCreateRequestDefinition) GetAttributes() LogsArchiveCreateRequestAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsArchiveCreateRequestDefinition) GetAttributesOk() (*LogsArchiveCreateRequestAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestDefinition) GetType() string
GetType returns the Type field value.
func (o *LogsArchiveCreateRequestDefinition) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveCreateRequestDefinition) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o LogsArchiveCreateRequestDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveCreateRequestDefinition) SetAttributes(v LogsArchiveCreateRequestAttributes)
SetAttributes gets a reference to the given LogsArchiveCreateRequestAttributes and assigns it to the Attributes field.
func (o *LogsArchiveCreateRequestDefinition) SetType(v string)
SetType sets field value.
func (o *LogsArchiveCreateRequestDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveCreateRequestDestination - An archive's destination.
type LogsArchiveCreateRequestDestination struct {
LogsArchiveDestinationAzure *LogsArchiveDestinationAzure
LogsArchiveDestinationGCS *LogsArchiveDestinationGCS
LogsArchiveDestinationS3 *LogsArchiveDestinationS3
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsArchiveDestinationAzureAsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationAzure) LogsArchiveCreateRequestDestination
LogsArchiveDestinationAzureAsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationAzure wrapped in LogsArchiveCreateRequestDestination.
func LogsArchiveDestinationGCSAsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationGCS) LogsArchiveCreateRequestDestination
LogsArchiveDestinationGCSAsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationGCS wrapped in LogsArchiveCreateRequestDestination.
func LogsArchiveDestinationS3AsLogsArchiveCreateRequestDestination(v *LogsArchiveDestinationS3) LogsArchiveCreateRequestDestination
LogsArchiveDestinationS3AsLogsArchiveCreateRequestDestination is a convenience function that returns LogsArchiveDestinationS3 wrapped in LogsArchiveCreateRequestDestination.
func (obj *LogsArchiveCreateRequestDestination) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsArchiveCreateRequestDestination) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsArchiveCreateRequestDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsArchiveDefinition The definition of an archive.
type LogsArchiveDefinition struct {
// The attributes associated with the archive.
Attributes *LogsArchiveAttributes `json:"attributes,omitempty"`
// The archive ID.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be archives.
Type string `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDefinition(typeVar string) *LogsArchiveDefinition
NewLogsArchiveDefinition instantiates a new LogsArchiveDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDefinitionWithDefaults() *LogsArchiveDefinition
NewLogsArchiveDefinitionWithDefaults instantiates a new LogsArchiveDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDefinition) GetAttributes() LogsArchiveAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsArchiveDefinition) GetAttributesOk() (*LogsArchiveAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *LogsArchiveDefinition) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) GetType() string
GetType returns the Type field value.
func (o *LogsArchiveDefinition) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDefinition) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogsArchiveDefinition) HasId() bool
HasId returns a boolean if a field has been set.
func (o LogsArchiveDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDefinition) SetAttributes(v LogsArchiveAttributes)
SetAttributes gets a reference to the given LogsArchiveAttributes and assigns it to the Attributes field.
func (o *LogsArchiveDefinition) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *LogsArchiveDefinition) SetType(v string)
SetType sets field value.
func (o *LogsArchiveDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestination - An archive's destination.
type LogsArchiveDestination struct {
LogsArchiveDestinationAzure *LogsArchiveDestinationAzure
LogsArchiveDestinationGCS *LogsArchiveDestinationGCS
LogsArchiveDestinationS3 *LogsArchiveDestinationS3
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsArchiveDestinationAzureAsLogsArchiveDestination(v *LogsArchiveDestinationAzure) LogsArchiveDestination
LogsArchiveDestinationAzureAsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationAzure wrapped in LogsArchiveDestination.
func LogsArchiveDestinationGCSAsLogsArchiveDestination(v *LogsArchiveDestinationGCS) LogsArchiveDestination
LogsArchiveDestinationGCSAsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationGCS wrapped in LogsArchiveDestination.
func LogsArchiveDestinationS3AsLogsArchiveDestination(v *LogsArchiveDestinationS3) LogsArchiveDestination
LogsArchiveDestinationS3AsLogsArchiveDestination is a convenience function that returns LogsArchiveDestinationS3 wrapped in LogsArchiveDestination.
func (obj *LogsArchiveDestination) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsArchiveDestination) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsArchiveDestination) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsArchiveDestinationAzure The Azure archive destination.
type LogsArchiveDestinationAzure struct {
// The container where the archive will be stored.
Container string `json:"container"`
// The Azure archive's integration destination.
Integration LogsArchiveIntegrationAzure `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// The region where the archive will be stored.
Region *string `json:"region,omitempty"`
// The associated storage account.
StorageAccount string `json:"storage_account"`
// Type of the Azure archive destination.
Type LogsArchiveDestinationAzureType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationAzure(container string, integration LogsArchiveIntegrationAzure, storageAccount string, typeVar LogsArchiveDestinationAzureType) *LogsArchiveDestinationAzure
NewLogsArchiveDestinationAzure instantiates a new LogsArchiveDestinationAzure object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationAzureWithDefaults() *LogsArchiveDestinationAzure
NewLogsArchiveDestinationAzureWithDefaults instantiates a new LogsArchiveDestinationAzure object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationAzure) GetContainer() string
GetContainer returns the Container field value.
func (o *LogsArchiveDestinationAzure) GetContainerOk() (*string, bool)
GetContainerOk returns a tuple with the Container field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetIntegration() LogsArchiveIntegrationAzure
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationAzure) GetIntegrationOk() (*LogsArchiveIntegrationAzure, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationAzure) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (o *LogsArchiveDestinationAzure) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetStorageAccount() string
GetStorageAccount returns the StorageAccount field value.
func (o *LogsArchiveDestinationAzure) GetStorageAccountOk() (*string, bool)
GetStorageAccountOk returns a tuple with the StorageAccount field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) GetType() LogsArchiveDestinationAzureType
GetType returns the Type field value.
func (o *LogsArchiveDestinationAzure) GetTypeOk() (*LogsArchiveDestinationAzureType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationAzure) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *LogsArchiveDestinationAzure) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o LogsArchiveDestinationAzure) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationAzure) SetContainer(v string)
SetContainer sets field value.
func (o *LogsArchiveDestinationAzure) SetIntegration(v LogsArchiveIntegrationAzure)
SetIntegration sets field value.
func (o *LogsArchiveDestinationAzure) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationAzure) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *LogsArchiveDestinationAzure) SetStorageAccount(v string)
SetStorageAccount sets field value.
func (o *LogsArchiveDestinationAzure) SetType(v LogsArchiveDestinationAzureType)
SetType sets field value.
func (o *LogsArchiveDestinationAzure) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationAzureType Type of the Azure archive destination.
type LogsArchiveDestinationAzureType string
List of LogsArchiveDestinationAzureType.
const (
LOGSARCHIVEDESTINATIONAZURETYPE_AZURE LogsArchiveDestinationAzureType = "azure"
)
func NewLogsArchiveDestinationAzureTypeFromValue(v string) (*LogsArchiveDestinationAzureType, error)
NewLogsArchiveDestinationAzureTypeFromValue returns a pointer to a valid LogsArchiveDestinationAzureType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationAzureType) GetAllowedValues() []LogsArchiveDestinationAzureType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationAzureType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationAzureType) Ptr() *LogsArchiveDestinationAzureType
Ptr returns reference to LogsArchiveDestinationAzureType value.
func (v *LogsArchiveDestinationAzureType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationGCS The GCS archive destination.
type LogsArchiveDestinationGCS struct {
// The bucket where the archive will be stored.
Bucket string `json:"bucket"`
// The GCS archive's integration destination.
Integration LogsArchiveIntegrationGCS `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// Type of the GCS archive destination.
Type LogsArchiveDestinationGCSType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationGCS(bucket string, integration LogsArchiveIntegrationGCS, typeVar LogsArchiveDestinationGCSType) *LogsArchiveDestinationGCS
NewLogsArchiveDestinationGCS instantiates a new LogsArchiveDestinationGCS object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationGCSWithDefaults() *LogsArchiveDestinationGCS
NewLogsArchiveDestinationGCSWithDefaults instantiates a new LogsArchiveDestinationGCS object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationGCS) GetBucket() string
GetBucket returns the Bucket field value.
func (o *LogsArchiveDestinationGCS) GetBucketOk() (*string, bool)
GetBucketOk returns a tuple with the Bucket field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetIntegration() LogsArchiveIntegrationGCS
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationGCS) GetIntegrationOk() (*LogsArchiveIntegrationGCS, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationGCS) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) GetType() LogsArchiveDestinationGCSType
GetType returns the Type field value.
func (o *LogsArchiveDestinationGCS) GetTypeOk() (*LogsArchiveDestinationGCSType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationGCS) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsArchiveDestinationGCS) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationGCS) SetBucket(v string)
SetBucket sets field value.
func (o *LogsArchiveDestinationGCS) SetIntegration(v LogsArchiveIntegrationGCS)
SetIntegration sets field value.
func (o *LogsArchiveDestinationGCS) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationGCS) SetType(v LogsArchiveDestinationGCSType)
SetType sets field value.
func (o *LogsArchiveDestinationGCS) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationGCSType Type of the GCS archive destination.
type LogsArchiveDestinationGCSType string
List of LogsArchiveDestinationGCSType.
const (
LOGSARCHIVEDESTINATIONGCSTYPE_GCS LogsArchiveDestinationGCSType = "gcs"
)
func NewLogsArchiveDestinationGCSTypeFromValue(v string) (*LogsArchiveDestinationGCSType, error)
NewLogsArchiveDestinationGCSTypeFromValue returns a pointer to a valid LogsArchiveDestinationGCSType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationGCSType) GetAllowedValues() []LogsArchiveDestinationGCSType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationGCSType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationGCSType) Ptr() *LogsArchiveDestinationGCSType
Ptr returns reference to LogsArchiveDestinationGCSType value.
func (v *LogsArchiveDestinationGCSType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationS3 The S3 archive destination.
type LogsArchiveDestinationS3 struct {
// The bucket where the archive will be stored.
Bucket string `json:"bucket"`
// The S3 Archive's integration destination.
Integration LogsArchiveIntegrationS3 `json:"integration"`
// The archive path.
Path *string `json:"path,omitempty"`
// Type of the S3 archive destination.
Type LogsArchiveDestinationS3Type `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveDestinationS3(bucket string, integration LogsArchiveIntegrationS3, typeVar LogsArchiveDestinationS3Type) *LogsArchiveDestinationS3
NewLogsArchiveDestinationS3 instantiates a new LogsArchiveDestinationS3 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveDestinationS3WithDefaults() *LogsArchiveDestinationS3
NewLogsArchiveDestinationS3WithDefaults instantiates a new LogsArchiveDestinationS3 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveDestinationS3) GetBucket() string
GetBucket returns the Bucket field value.
func (o *LogsArchiveDestinationS3) GetBucketOk() (*string, bool)
GetBucketOk returns a tuple with the Bucket field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetIntegration() LogsArchiveIntegrationS3
GetIntegration returns the Integration field value.
func (o *LogsArchiveDestinationS3) GetIntegrationOk() (*LogsArchiveIntegrationS3, bool)
GetIntegrationOk returns a tuple with the Integration field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsArchiveDestinationS3) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) GetType() LogsArchiveDestinationS3Type
GetType returns the Type field value.
func (o *LogsArchiveDestinationS3) GetTypeOk() (*LogsArchiveDestinationS3Type, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *LogsArchiveDestinationS3) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsArchiveDestinationS3) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveDestinationS3) SetBucket(v string)
SetBucket sets field value.
func (o *LogsArchiveDestinationS3) SetIntegration(v LogsArchiveIntegrationS3)
SetIntegration sets field value.
func (o *LogsArchiveDestinationS3) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsArchiveDestinationS3) SetType(v LogsArchiveDestinationS3Type)
SetType sets field value.
func (o *LogsArchiveDestinationS3) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveDestinationS3Type Type of the S3 archive destination.
type LogsArchiveDestinationS3Type string
List of LogsArchiveDestinationS3Type.
const (
LOGSARCHIVEDESTINATIONS3TYPE_S3 LogsArchiveDestinationS3Type = "s3"
)
func NewLogsArchiveDestinationS3TypeFromValue(v string) (*LogsArchiveDestinationS3Type, error)
NewLogsArchiveDestinationS3TypeFromValue returns a pointer to a valid LogsArchiveDestinationS3Type for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveDestinationS3Type) GetAllowedValues() []LogsArchiveDestinationS3Type
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveDestinationS3Type) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveDestinationS3Type) Ptr() *LogsArchiveDestinationS3Type
Ptr returns reference to LogsArchiveDestinationS3Type value.
func (v *LogsArchiveDestinationS3Type) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationAzure The Azure archive's integration destination.
type LogsArchiveIntegrationAzure struct {
// A client ID.
ClientId string `json:"client_id"`
// A tenant ID.
TenantId string `json:"tenant_id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationAzure(clientId string, tenantId string) *LogsArchiveIntegrationAzure
NewLogsArchiveIntegrationAzure instantiates a new LogsArchiveIntegrationAzure object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationAzureWithDefaults() *LogsArchiveIntegrationAzure
NewLogsArchiveIntegrationAzureWithDefaults instantiates a new LogsArchiveIntegrationAzure object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationAzure) GetClientId() string
GetClientId returns the ClientId field value.
func (o *LogsArchiveIntegrationAzure) GetClientIdOk() (*string, bool)
GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationAzure) GetTenantId() string
GetTenantId returns the TenantId field value.
func (o *LogsArchiveIntegrationAzure) GetTenantIdOk() (*string, bool)
GetTenantIdOk returns a tuple with the TenantId field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationAzure) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationAzure) SetClientId(v string)
SetClientId sets field value.
func (o *LogsArchiveIntegrationAzure) SetTenantId(v string)
SetTenantId sets field value.
func (o *LogsArchiveIntegrationAzure) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationGCS The GCS archive's integration destination.
type LogsArchiveIntegrationGCS struct {
// A client email.
ClientEmail string `json:"client_email"`
// A project ID.
ProjectId string `json:"project_id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationGCS(clientEmail string, projectId string) *LogsArchiveIntegrationGCS
NewLogsArchiveIntegrationGCS instantiates a new LogsArchiveIntegrationGCS object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationGCSWithDefaults() *LogsArchiveIntegrationGCS
NewLogsArchiveIntegrationGCSWithDefaults instantiates a new LogsArchiveIntegrationGCS object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationGCS) GetClientEmail() string
GetClientEmail returns the ClientEmail field value.
func (o *LogsArchiveIntegrationGCS) GetClientEmailOk() (*string, bool)
GetClientEmailOk returns a tuple with the ClientEmail field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationGCS) GetProjectId() string
GetProjectId returns the ProjectId field value.
func (o *LogsArchiveIntegrationGCS) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationGCS) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationGCS) SetClientEmail(v string)
SetClientEmail sets field value.
func (o *LogsArchiveIntegrationGCS) SetProjectId(v string)
SetProjectId sets field value.
func (o *LogsArchiveIntegrationGCS) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveIntegrationS3 The S3 Archive's integration destination.
type LogsArchiveIntegrationS3 struct {
// The account ID for the integration.
AccountId string `json:"account_id"`
// The path of the integration.
RoleName string `json:"role_name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveIntegrationS3(accountId string, roleName string) *LogsArchiveIntegrationS3
NewLogsArchiveIntegrationS3 instantiates a new LogsArchiveIntegrationS3 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveIntegrationS3WithDefaults() *LogsArchiveIntegrationS3
NewLogsArchiveIntegrationS3WithDefaults instantiates a new LogsArchiveIntegrationS3 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveIntegrationS3) GetAccountId() string
GetAccountId returns the AccountId field value.
func (o *LogsArchiveIntegrationS3) GetAccountIdOk() (*string, bool)
GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.
func (o *LogsArchiveIntegrationS3) GetRoleName() string
GetRoleName returns the RoleName field value.
func (o *LogsArchiveIntegrationS3) GetRoleNameOk() (*string, bool)
GetRoleNameOk returns a tuple with the RoleName field value and a boolean to check if the value has been set.
func (o LogsArchiveIntegrationS3) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveIntegrationS3) SetAccountId(v string)
SetAccountId sets field value.
func (o *LogsArchiveIntegrationS3) SetRoleName(v string)
SetRoleName sets field value.
func (o *LogsArchiveIntegrationS3) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrder A ordered list of archive IDs.
type LogsArchiveOrder struct {
// The definition of an archive order.
Data *LogsArchiveOrderDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrder() *LogsArchiveOrder
NewLogsArchiveOrder instantiates a new LogsArchiveOrder object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderWithDefaults() *LogsArchiveOrder
NewLogsArchiveOrderWithDefaults instantiates a new LogsArchiveOrder object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrder) GetData() LogsArchiveOrderDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchiveOrder) GetDataOk() (*LogsArchiveOrderDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchiveOrder) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchiveOrder) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrder) SetData(v LogsArchiveOrderDefinition)
SetData gets a reference to the given LogsArchiveOrderDefinition and assigns it to the Data field.
func (o *LogsArchiveOrder) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderAttributes The attributes associated with the archive order.
type LogsArchiveOrderAttributes struct {
// An ordered array of `<ARCHIVE_ID>` strings, the order of archive IDs in the array
// define the overall archives order for Datadog.
ArchiveIds []string `json:"archive_ids"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrderAttributes(archiveIds []string) *LogsArchiveOrderAttributes
NewLogsArchiveOrderAttributes instantiates a new LogsArchiveOrderAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderAttributesWithDefaults() *LogsArchiveOrderAttributes
NewLogsArchiveOrderAttributesWithDefaults instantiates a new LogsArchiveOrderAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrderAttributes) GetArchiveIds() []string
GetArchiveIds returns the ArchiveIds field value.
func (o *LogsArchiveOrderAttributes) GetArchiveIdsOk() (*[]string, bool)
GetArchiveIdsOk returns a tuple with the ArchiveIds field value and a boolean to check if the value has been set.
func (o LogsArchiveOrderAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrderAttributes) SetArchiveIds(v []string)
SetArchiveIds sets field value.
func (o *LogsArchiveOrderAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderDefinition The definition of an archive order.
type LogsArchiveOrderDefinition struct {
// The attributes associated with the archive order.
Attributes LogsArchiveOrderAttributes `json:"attributes"`
// Type of the archive order definition.
Type LogsArchiveOrderDefinitionType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchiveOrderDefinition(attributes LogsArchiveOrderAttributes, typeVar LogsArchiveOrderDefinitionType) *LogsArchiveOrderDefinition
NewLogsArchiveOrderDefinition instantiates a new LogsArchiveOrderDefinition object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchiveOrderDefinitionWithDefaults() *LogsArchiveOrderDefinition
NewLogsArchiveOrderDefinitionWithDefaults instantiates a new LogsArchiveOrderDefinition object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchiveOrderDefinition) GetAttributes() LogsArchiveOrderAttributes
GetAttributes returns the Attributes field value.
func (o *LogsArchiveOrderDefinition) GetAttributesOk() (*LogsArchiveOrderAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsArchiveOrderDefinition) GetType() LogsArchiveOrderDefinitionType
GetType returns the Type field value.
func (o *LogsArchiveOrderDefinition) GetTypeOk() (*LogsArchiveOrderDefinitionType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsArchiveOrderDefinition) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchiveOrderDefinition) SetAttributes(v LogsArchiveOrderAttributes)
SetAttributes sets field value.
func (o *LogsArchiveOrderDefinition) SetType(v LogsArchiveOrderDefinitionType)
SetType sets field value.
func (o *LogsArchiveOrderDefinition) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchiveOrderDefinitionType Type of the archive order definition.
type LogsArchiveOrderDefinitionType string
List of LogsArchiveOrderDefinitionType.
const (
LOGSARCHIVEORDERDEFINITIONTYPE_ARCHIVE_ORDER LogsArchiveOrderDefinitionType = "archive_order"
)
func NewLogsArchiveOrderDefinitionTypeFromValue(v string) (*LogsArchiveOrderDefinitionType, error)
NewLogsArchiveOrderDefinitionTypeFromValue returns a pointer to a valid LogsArchiveOrderDefinitionType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveOrderDefinitionType) GetAllowedValues() []LogsArchiveOrderDefinitionType
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveOrderDefinitionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveOrderDefinitionType) Ptr() *LogsArchiveOrderDefinitionType
Ptr returns reference to LogsArchiveOrderDefinitionType value.
func (v *LogsArchiveOrderDefinitionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchiveState The state of the archive.
type LogsArchiveState string
List of LogsArchiveState.
const (
LOGSARCHIVESTATE_UNKNOWN LogsArchiveState = "UNKNOWN"
LOGSARCHIVESTATE_WORKING LogsArchiveState = "WORKING"
LOGSARCHIVESTATE_FAILING LogsArchiveState = "FAILING"
LOGSARCHIVESTATE_WORKING_AUTH_LEGACY LogsArchiveState = "WORKING_AUTH_LEGACY"
)
func NewLogsArchiveStateFromValue(v string) (*LogsArchiveState, error)
NewLogsArchiveStateFromValue returns a pointer to a valid LogsArchiveState for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsArchiveState) GetAllowedValues() []LogsArchiveState
GetAllowedValues reeturns the list of possible values.
func (v LogsArchiveState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsArchiveState) Ptr() *LogsArchiveState
Ptr returns reference to LogsArchiveState value.
func (v *LogsArchiveState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsArchives The available archives.
type LogsArchives struct {
// A list of archives.
Data []LogsArchiveDefinition `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsArchives() *LogsArchives
NewLogsArchives instantiates a new LogsArchives object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsArchivesWithDefaults() *LogsArchives
NewLogsArchivesWithDefaults instantiates a new LogsArchives object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsArchives) GetData() []LogsArchiveDefinition
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsArchives) GetDataOk() (*[]LogsArchiveDefinition, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsArchives) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsArchives) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsArchives) SetData(v []LogsArchiveDefinition)
SetData gets a reference to the given []LogsArchiveDefinition and assigns it to the Data field.
func (o *LogsArchives) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsArchivesApi service type
type LogsArchivesApi datadog.Service
func NewLogsArchivesApi(client *datadog.APIClient) *LogsArchivesApi
NewLogsArchivesApi Returns NewLogsArchivesApi.
func (a *LogsArchivesApi) AddReadRoleToArchive(ctx _context.Context, archiveId string, body RelationshipToRole) (*_nethttp.Response, error)
AddReadRoleToArchive Grant role to an archive. Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))
func (a *LogsArchivesApi) CreateLogsArchive(ctx _context.Context, body LogsArchiveCreateRequest) (LogsArchive, *_nethttp.Response, error)
CreateLogsArchive Create an archive. Create an archive in your organization.
func (a *LogsArchivesApi) DeleteLogsArchive(ctx _context.Context, archiveId string) (*_nethttp.Response, error)
DeleteLogsArchive Delete an archive. Delete a given archive from your organization.
func (a *LogsArchivesApi) GetLogsArchive(ctx _context.Context, archiveId string) (LogsArchive, *_nethttp.Response, error)
GetLogsArchive Get an archive. Get a specific archive from your organization.
func (a *LogsArchivesApi) GetLogsArchiveOrder(ctx _context.Context) (LogsArchiveOrder, *_nethttp.Response, error)
GetLogsArchiveOrder Get archive order. Get the current order of your archives. This endpoint takes no JSON arguments.
func (a *LogsArchivesApi) ListArchiveReadRoles(ctx _context.Context, archiveId string) (RolesResponse, *_nethttp.Response, error)
ListArchiveReadRoles List read roles for an archive. Returns all read roles a given archive is restricted to.
func (a *LogsArchivesApi) ListLogsArchives(ctx _context.Context) (LogsArchives, *_nethttp.Response, error)
ListLogsArchives Get all archives. Get the list of configured logs archives with their definitions.
func (a *LogsArchivesApi) RemoveRoleFromArchive(ctx _context.Context, archiveId string, body RelationshipToRole) (*_nethttp.Response, error)
RemoveRoleFromArchive Revoke role from an archive. Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))
func (a *LogsArchivesApi) UpdateLogsArchive(ctx _context.Context, archiveId string, body LogsArchiveCreateRequest) (LogsArchive, *_nethttp.Response, error)
UpdateLogsArchive Update an archive. Update a given archive configuration.
**Note**: Using this method updates your archive configuration by **replacing** your current configuration with the new one sent to your Datadog organization.
func (a *LogsArchivesApi) UpdateLogsArchiveOrder(ctx _context.Context, body LogsArchiveOrder) (LogsArchiveOrder, *_nethttp.Response, error)
UpdateLogsArchiveOrder Update archive order. Update the order of your archives. Since logs are processed sequentially, reordering an archive may change the structure and content of the data processed by other archives.
**Note**: Using the `PUT` method updates your archive's order by replacing the current order with the new one.
LogsCompute A compute rule to compute metrics or timeseries
type LogsCompute struct {
// An aggregation function
Aggregation LogsAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points
Interval *string `json:"interval,omitempty"`
// The metric to use
Metric *string `json:"metric,omitempty"`
// The type of compute
Type *LogsComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsCompute(aggregation LogsAggregationFunction) *LogsCompute
NewLogsCompute instantiates a new LogsCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsComputeWithDefaults() *LogsCompute
NewLogsComputeWithDefaults instantiates a new LogsCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsCompute) GetAggregation() LogsAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *LogsCompute) GetAggregationOk() (*LogsAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *LogsCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *LogsCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *LogsCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) GetType() LogsComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsCompute) GetTypeOk() (*LogsComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *LogsCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *LogsCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsCompute) SetAggregation(v LogsAggregationFunction)
SetAggregation sets field value.
func (o *LogsCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *LogsCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *LogsCompute) SetType(v LogsComputeType)
SetType gets a reference to the given LogsComputeType and assigns it to the Type field.
func (o *LogsCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsComputeType The type of compute
type LogsComputeType string
List of LogsComputeType.
const (
LOGSCOMPUTETYPE_TIMESERIES LogsComputeType = "timeseries"
LOGSCOMPUTETYPE_TOTAL LogsComputeType = "total"
)
func NewLogsComputeTypeFromValue(v string) (*LogsComputeType, error)
NewLogsComputeTypeFromValue returns a pointer to a valid LogsComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsComputeType) GetAllowedValues() []LogsComputeType
GetAllowedValues reeturns the list of possible values.
func (v LogsComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsComputeType) Ptr() *LogsComputeType
Ptr returns reference to LogsComputeType value.
func (v *LogsComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsGroupBy A group by rule
type LogsGroupBy struct {
// The name of the facet to use (required)
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
Histogram *LogsGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group by
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group by
Missing *LogsGroupByMissing `json:"missing,omitempty"`
// A sort rule
Sort *LogsAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *LogsGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsGroupBy(facet string) *LogsGroupBy
NewLogsGroupBy instantiates a new LogsGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsGroupByWithDefaults() *LogsGroupBy
NewLogsGroupByWithDefaults instantiates a new LogsGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *LogsGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetHistogram() LogsGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *LogsGroupBy) GetHistogramOk() (*LogsGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *LogsGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetMissing() LogsGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *LogsGroupBy) GetMissingOk() (*LogsGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetSort() LogsAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *LogsGroupBy) GetSortOk() (*LogsAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) GetTotal() LogsGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *LogsGroupBy) GetTotalOk() (*LogsGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *LogsGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *LogsGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *LogsGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *LogsGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o LogsGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *LogsGroupBy) SetHistogram(v LogsGroupByHistogram)
SetHistogram gets a reference to the given LogsGroupByHistogram and assigns it to the Histogram field.
func (o *LogsGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *LogsGroupBy) SetMissing(v LogsGroupByMissing)
SetMissing gets a reference to the given LogsGroupByMissing and assigns it to the Missing field.
func (o *LogsGroupBy) SetSort(v LogsAggregateSort)
SetSort gets a reference to the given LogsAggregateSort and assigns it to the Sort field.
func (o *LogsGroupBy) SetTotal(v LogsGroupByTotal)
SetTotal gets a reference to the given LogsGroupByTotal and assigns it to the Total field.
func (o *LogsGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsGroupByHistogram Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
type LogsGroupByHistogram struct {
// The bin size of the histogram buckets
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out)
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out)
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsGroupByHistogram(interval float64, max float64, min float64) *LogsGroupByHistogram
NewLogsGroupByHistogram instantiates a new LogsGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsGroupByHistogramWithDefaults() *LogsGroupByHistogram
NewLogsGroupByHistogramWithDefaults instantiates a new LogsGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *LogsGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *LogsGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *LogsGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *LogsGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *LogsGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o LogsGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *LogsGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *LogsGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *LogsGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsGroupByMissing - The value to use for logs that don't have the facet used to group by
type LogsGroupByMissing struct {
LogsGroupByMissingString *string
LogsGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsGroupByMissingNumberAsLogsGroupByMissing(v *float64) LogsGroupByMissing
LogsGroupByMissingNumberAsLogsGroupByMissing is a convenience function that returns float64 wrapped in LogsGroupByMissing.
func LogsGroupByMissingStringAsLogsGroupByMissing(v *string) LogsGroupByMissing
LogsGroupByMissingStringAsLogsGroupByMissing is a convenience function that returns string wrapped in LogsGroupByMissing.
func (obj *LogsGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsGroupByTotal - A resulting object to put the given computes in over all the matching records.
type LogsGroupByTotal struct {
LogsGroupByTotalBoolean *bool
LogsGroupByTotalString *string
LogsGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func LogsGroupByTotalBooleanAsLogsGroupByTotal(v *bool) LogsGroupByTotal
LogsGroupByTotalBooleanAsLogsGroupByTotal is a convenience function that returns bool wrapped in LogsGroupByTotal.
func LogsGroupByTotalNumberAsLogsGroupByTotal(v *float64) LogsGroupByTotal
LogsGroupByTotalNumberAsLogsGroupByTotal is a convenience function that returns float64 wrapped in LogsGroupByTotal.
func LogsGroupByTotalStringAsLogsGroupByTotal(v *string) LogsGroupByTotal
LogsGroupByTotalStringAsLogsGroupByTotal is a convenience function that returns string wrapped in LogsGroupByTotal.
func (obj *LogsGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj LogsGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *LogsGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
LogsListRequest The request for a logs list.
type LogsListRequest struct {
// The search and filter query settings
Filter *LogsQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: You should only supply timezone or time offset but not both otherwise the query will fail.
Options *LogsQueryOptions `json:"options,omitempty"`
// Paging attributes for listing logs.
Page *LogsListRequestPage `json:"page,omitempty"`
// Sort parameters when querying logs.
Sort *LogsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListRequest() *LogsListRequest
NewLogsListRequest instantiates a new LogsListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListRequestWithDefaults() *LogsListRequest
NewLogsListRequestWithDefaults instantiates a new LogsListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListRequest) GetFilter() LogsQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsListRequest) GetFilterOk() (*LogsQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetOptions() LogsQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *LogsListRequest) GetOptionsOk() (*LogsQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetPage() LogsListRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsListRequest) GetPageOk() (*LogsListRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) GetSort() LogsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *LogsListRequest) GetSortOk() (*LogsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsListRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *LogsListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *LogsListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o LogsListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListRequest) SetFilter(v LogsQueryFilter)
SetFilter gets a reference to the given LogsQueryFilter and assigns it to the Filter field.
func (o *LogsListRequest) SetOptions(v LogsQueryOptions)
SetOptions gets a reference to the given LogsQueryOptions and assigns it to the Options field.
func (o *LogsListRequest) SetPage(v LogsListRequestPage)
SetPage gets a reference to the given LogsListRequestPage and assigns it to the Page field.
func (o *LogsListRequest) SetSort(v LogsSort)
SetSort gets a reference to the given LogsSort and assigns it to the Sort field.
func (o *LogsListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListRequestPage Paging attributes for listing logs.
type LogsListRequestPage struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of logs in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListRequestPage() *LogsListRequestPage
NewLogsListRequestPage instantiates a new LogsListRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListRequestPageWithDefaults() *LogsListRequestPage
NewLogsListRequestPageWithDefaults instantiates a new LogsListRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *LogsListRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *LogsListRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *LogsListRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o LogsListRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *LogsListRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *LogsListRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListResponse Response object with all logs matching the request and pagination information.
type LogsListResponse struct {
// Array of logs matching the request.
Data []Log `json:"data,omitempty"`
// Links attributes.
Links *LogsListResponseLinks `json:"links,omitempty"`
// The metadata associated with a request
Meta *LogsResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListResponse() *LogsListResponse
NewLogsListResponse instantiates a new LogsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListResponseWithDefaults() *LogsListResponse
NewLogsListResponseWithDefaults instantiates a new LogsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListResponse) GetData() []Log
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsListResponse) GetDataOk() (*[]Log, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) GetLinks() LogsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *LogsListResponse) GetLinksOk() (*LogsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) GetMeta() LogsResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *LogsListResponse) GetMetaOk() (*LogsResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *LogsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *LogsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o LogsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListResponse) SetData(v []Log)
SetData gets a reference to the given []Log and assigns it to the Data field.
func (o *LogsListResponse) SetLinks(v LogsListResponseLinks)
SetLinks gets a reference to the given LogsListResponseLinks and assigns it to the Links field.
func (o *LogsListResponse) SetMeta(v LogsResponseMetadata)
SetMeta gets a reference to the given LogsResponseMetadata and assigns it to the Meta field.
func (o *LogsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsListResponseLinks Links attributes.
type LogsListResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsListResponseLinks() *LogsListResponseLinks
NewLogsListResponseLinks instantiates a new LogsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsListResponseLinksWithDefaults() *LogsListResponseLinks
NewLogsListResponseLinksWithDefaults instantiates a new LogsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *LogsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o LogsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *LogsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCompute The compute rule to compute the log-based metric.
type LogsMetricCompute struct {
// The type of aggregation to use.
AggregationType LogsMetricComputeAggregationType `json:"aggregation_type"`
// The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCompute(aggregationType LogsMetricComputeAggregationType) *LogsMetricCompute
NewLogsMetricCompute instantiates a new LogsMetricCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricComputeWithDefaults() *LogsMetricCompute
NewLogsMetricComputeWithDefaults instantiates a new LogsMetricCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCompute) GetAggregationType() LogsMetricComputeAggregationType
GetAggregationType returns the AggregationType field value.
func (o *LogsMetricCompute) GetAggregationTypeOk() (*LogsMetricComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value and a boolean to check if the value has been set.
func (o *LogsMetricCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsMetricCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCompute) SetAggregationType(v LogsMetricComputeAggregationType)
SetAggregationType sets field value.
func (o *LogsMetricCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricComputeAggregationType The type of aggregation to use.
type LogsMetricComputeAggregationType string
List of LogsMetricComputeAggregationType.
const (
LOGSMETRICCOMPUTEAGGREGATIONTYPE_COUNT LogsMetricComputeAggregationType = "count"
LOGSMETRICCOMPUTEAGGREGATIONTYPE_DISTRIBUTION LogsMetricComputeAggregationType = "distribution"
)
func NewLogsMetricComputeAggregationTypeFromValue(v string) (*LogsMetricComputeAggregationType, error)
NewLogsMetricComputeAggregationTypeFromValue returns a pointer to a valid LogsMetricComputeAggregationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricComputeAggregationType) GetAllowedValues() []LogsMetricComputeAggregationType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricComputeAggregationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricComputeAggregationType) Ptr() *LogsMetricComputeAggregationType
Ptr returns reference to LogsMetricComputeAggregationType value.
func (v *LogsMetricComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricCreateAttributes The object describing the Datadog log-based metric to create.
type LogsMetricCreateAttributes struct {
// The compute rule to compute the log-based metric.
Compute LogsMetricCompute `json:"compute"`
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateAttributes(compute LogsMetricCompute) *LogsMetricCreateAttributes
NewLogsMetricCreateAttributes instantiates a new LogsMetricCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateAttributesWithDefaults() *LogsMetricCreateAttributes
NewLogsMetricCreateAttributesWithDefaults instantiates a new LogsMetricCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateAttributes) GetCompute() LogsMetricCompute
GetCompute returns the Compute field value.
func (o *LogsMetricCreateAttributes) GetComputeOk() (*LogsMetricCompute, bool)
GetComputeOk returns a tuple with the Compute field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) GetFilter() LogsMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricCreateAttributes) GetFilterOk() (*LogsMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) GetGroupBy() []LogsMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricCreateAttributes) GetGroupByOk() (*[]LogsMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricCreateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricCreateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateAttributes) SetCompute(v LogsMetricCompute)
SetCompute sets field value.
func (o *LogsMetricCreateAttributes) SetFilter(v LogsMetricFilter)
SetFilter gets a reference to the given LogsMetricFilter and assigns it to the Filter field.
func (o *LogsMetricCreateAttributes) SetGroupBy(v []LogsMetricGroupBy)
SetGroupBy gets a reference to the given []LogsMetricGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCreateData The new log-based metric properties.
type LogsMetricCreateData struct {
// The object describing the Datadog log-based metric to create.
Attributes LogsMetricCreateAttributes `json:"attributes"`
// The name of the log-based metric.
Id string `json:"id"`
// The type of the resource. The value should always be logs_metrics.
Type LogsMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateData(attributes LogsMetricCreateAttributes, id string, typeVar LogsMetricType) *LogsMetricCreateData
NewLogsMetricCreateData instantiates a new LogsMetricCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateDataWithDefaults() *LogsMetricCreateData
NewLogsMetricCreateDataWithDefaults instantiates a new LogsMetricCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateData) GetAttributes() LogsMetricCreateAttributes
GetAttributes returns the Attributes field value.
func (o *LogsMetricCreateData) GetAttributesOk() (*LogsMetricCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateData) GetId() string
GetId returns the Id field value.
func (o *LogsMetricCreateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *LogsMetricCreateData) GetType() LogsMetricType
GetType returns the Type field value.
func (o *LogsMetricCreateData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsMetricCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateData) SetAttributes(v LogsMetricCreateAttributes)
SetAttributes sets field value.
func (o *LogsMetricCreateData) SetId(v string)
SetId sets field value.
func (o *LogsMetricCreateData) SetType(v LogsMetricType)
SetType sets field value.
func (o *LogsMetricCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricCreateRequest The new log-based metric body.
type LogsMetricCreateRequest struct {
// The new log-based metric properties.
Data LogsMetricCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricCreateRequest(data LogsMetricCreateData) *LogsMetricCreateRequest
NewLogsMetricCreateRequest instantiates a new LogsMetricCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricCreateRequestWithDefaults() *LogsMetricCreateRequest
NewLogsMetricCreateRequestWithDefaults instantiates a new LogsMetricCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricCreateRequest) GetData() LogsMetricCreateData
GetData returns the Data field value.
func (o *LogsMetricCreateRequest) GetDataOk() (*LogsMetricCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o LogsMetricCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricCreateRequest) SetData(v LogsMetricCreateData)
SetData sets field value.
func (o *LogsMetricCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricFilter The log-based metric filter. Logs matching this filter will be aggregated in this metric.
type LogsMetricFilter struct {
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricFilter() *LogsMetricFilter
NewLogsMetricFilter instantiates a new LogsMetricFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricFilterWithDefaults() *LogsMetricFilter
NewLogsMetricFilterWithDefaults instantiates a new LogsMetricFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsMetricFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o LogsMetricFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsMetricFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricGroupBy A group by rule.
type LogsMetricGroupBy struct {
// The path to the value the log-based metric will be aggregated over.
Path string `json:"path"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricGroupBy(path string) *LogsMetricGroupBy
NewLogsMetricGroupBy instantiates a new LogsMetricGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricGroupByWithDefaults() *LogsMetricGroupBy
NewLogsMetricGroupByWithDefaults instantiates a new LogsMetricGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricGroupBy) GetPath() string
GetPath returns the Path field value.
func (o *LogsMetricGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.
func (o *LogsMetricGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *LogsMetricGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o LogsMetricGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricGroupBy) SetPath(v string)
SetPath sets field value.
func (o *LogsMetricGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *LogsMetricGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponse The log-based metric object.
type LogsMetricResponse struct {
// The log-based metric properties.
Data *LogsMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponse() *LogsMetricResponse
NewLogsMetricResponse instantiates a new LogsMetricResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseWithDefaults() *LogsMetricResponse
NewLogsMetricResponseWithDefaults instantiates a new LogsMetricResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponse) GetData() LogsMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsMetricResponse) GetDataOk() (*LogsMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsMetricResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponse) SetData(v LogsMetricResponseData)
SetData gets a reference to the given LogsMetricResponseData and assigns it to the Data field.
func (o *LogsMetricResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseAttributes The object describing a Datadog log-based metric.
type LogsMetricResponseAttributes struct {
// The compute rule to compute the log-based metric.
Compute *LogsMetricResponseCompute `json:"compute,omitempty"`
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricResponseFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricResponseGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseAttributes() *LogsMetricResponseAttributes
NewLogsMetricResponseAttributes instantiates a new LogsMetricResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseAttributesWithDefaults() *LogsMetricResponseAttributes
NewLogsMetricResponseAttributesWithDefaults instantiates a new LogsMetricResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseAttributes) GetCompute() LogsMetricResponseCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetComputeOk() (*LogsMetricResponseCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) GetFilter() LogsMetricResponseFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetFilterOk() (*LogsMetricResponseFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) GetGroupBy() []LogsMetricResponseGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricResponseAttributes) GetGroupByOk() (*[]LogsMetricResponseGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseAttributes) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *LogsMetricResponseAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricResponseAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseAttributes) SetCompute(v LogsMetricResponseCompute)
SetCompute gets a reference to the given LogsMetricResponseCompute and assigns it to the Compute field.
func (o *LogsMetricResponseAttributes) SetFilter(v LogsMetricResponseFilter)
SetFilter gets a reference to the given LogsMetricResponseFilter and assigns it to the Filter field.
func (o *LogsMetricResponseAttributes) SetGroupBy(v []LogsMetricResponseGroupBy)
SetGroupBy gets a reference to the given []LogsMetricResponseGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseCompute The compute rule to compute the log-based metric.
type LogsMetricResponseCompute struct {
// The type of aggregation to use.
AggregationType *LogsMetricResponseComputeAggregationType `json:"aggregation_type,omitempty"`
// The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution").
Path *string `json:"path,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseCompute() *LogsMetricResponseCompute
NewLogsMetricResponseCompute instantiates a new LogsMetricResponseCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseComputeWithDefaults() *LogsMetricResponseCompute
NewLogsMetricResponseComputeWithDefaults instantiates a new LogsMetricResponseCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseCompute) GetAggregationType() LogsMetricResponseComputeAggregationType
GetAggregationType returns the AggregationType field value if set, zero value otherwise.
func (o *LogsMetricResponseCompute) GetAggregationTypeOk() (*LogsMetricResponseComputeAggregationType, bool)
GetAggregationTypeOk returns a tuple with the AggregationType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseCompute) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricResponseCompute) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseCompute) HasAggregationType() bool
HasAggregationType returns a boolean if a field has been set.
func (o *LogsMetricResponseCompute) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o LogsMetricResponseCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseCompute) SetAggregationType(v LogsMetricResponseComputeAggregationType)
SetAggregationType gets a reference to the given LogsMetricResponseComputeAggregationType and assigns it to the AggregationType field.
func (o *LogsMetricResponseCompute) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricResponseCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseComputeAggregationType The type of aggregation to use.
type LogsMetricResponseComputeAggregationType string
List of LogsMetricResponseComputeAggregationType.
const (
LOGSMETRICRESPONSECOMPUTEAGGREGATIONTYPE_COUNT LogsMetricResponseComputeAggregationType = "count"
LOGSMETRICRESPONSECOMPUTEAGGREGATIONTYPE_DISTRIBUTION LogsMetricResponseComputeAggregationType = "distribution"
)
func NewLogsMetricResponseComputeAggregationTypeFromValue(v string) (*LogsMetricResponseComputeAggregationType, error)
NewLogsMetricResponseComputeAggregationTypeFromValue returns a pointer to a valid LogsMetricResponseComputeAggregationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricResponseComputeAggregationType) GetAllowedValues() []LogsMetricResponseComputeAggregationType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricResponseComputeAggregationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricResponseComputeAggregationType) Ptr() *LogsMetricResponseComputeAggregationType
Ptr returns reference to LogsMetricResponseComputeAggregationType value.
func (v *LogsMetricResponseComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricResponseData The log-based metric properties.
type LogsMetricResponseData struct {
// The object describing a Datadog log-based metric.
Attributes *LogsMetricResponseAttributes `json:"attributes,omitempty"`
// The name of the log-based metric.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be logs_metrics.
Type *LogsMetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseData() *LogsMetricResponseData
NewLogsMetricResponseData instantiates a new LogsMetricResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseDataWithDefaults() *LogsMetricResponseData
NewLogsMetricResponseDataWithDefaults instantiates a new LogsMetricResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseData) GetAttributes() LogsMetricResponseAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetAttributesOk() (*LogsMetricResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) GetType() LogsMetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *LogsMetricResponseData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *LogsMetricResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *LogsMetricResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o LogsMetricResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseData) SetAttributes(v LogsMetricResponseAttributes)
SetAttributes gets a reference to the given LogsMetricResponseAttributes and assigns it to the Attributes field.
func (o *LogsMetricResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *LogsMetricResponseData) SetType(v LogsMetricType)
SetType gets a reference to the given LogsMetricType and assigns it to the Type field.
func (o *LogsMetricResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseFilter The log-based metric filter. Logs matching this filter will be aggregated in this metric.
type LogsMetricResponseFilter struct {
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseFilter() *LogsMetricResponseFilter
NewLogsMetricResponseFilter instantiates a new LogsMetricResponseFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseFilterWithDefaults() *LogsMetricResponseFilter
NewLogsMetricResponseFilterWithDefaults instantiates a new LogsMetricResponseFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsMetricResponseFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o LogsMetricResponseFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsMetricResponseFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricResponseGroupBy A group by rule.
type LogsMetricResponseGroupBy struct {
// The path to the value the log-based metric will be aggregated over.
Path *string `json:"path,omitempty"`
// Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
TagName *string `json:"tag_name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricResponseGroupBy() *LogsMetricResponseGroupBy
NewLogsMetricResponseGroupBy instantiates a new LogsMetricResponseGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricResponseGroupByWithDefaults() *LogsMetricResponseGroupBy
NewLogsMetricResponseGroupByWithDefaults instantiates a new LogsMetricResponseGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricResponseGroupBy) GetPath() string
GetPath returns the Path field value if set, zero value otherwise.
func (o *LogsMetricResponseGroupBy) GetPathOk() (*string, bool)
GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseGroupBy) GetTagName() string
GetTagName returns the TagName field value if set, zero value otherwise.
func (o *LogsMetricResponseGroupBy) GetTagNameOk() (*string, bool)
GetTagNameOk returns a tuple with the TagName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricResponseGroupBy) HasPath() bool
HasPath returns a boolean if a field has been set.
func (o *LogsMetricResponseGroupBy) HasTagName() bool
HasTagName returns a boolean if a field has been set.
func (o LogsMetricResponseGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricResponseGroupBy) SetPath(v string)
SetPath gets a reference to the given string and assigns it to the Path field.
func (o *LogsMetricResponseGroupBy) SetTagName(v string)
SetTagName gets a reference to the given string and assigns it to the TagName field.
func (o *LogsMetricResponseGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricType The type of the resource. The value should always be logs_metrics.
type LogsMetricType string
List of LogsMetricType.
const (
LOGSMETRICTYPE_LOGS_METRICS LogsMetricType = "logs_metrics"
)
func NewLogsMetricTypeFromValue(v string) (*LogsMetricType, error)
NewLogsMetricTypeFromValue returns a pointer to a valid LogsMetricType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsMetricType) GetAllowedValues() []LogsMetricType
GetAllowedValues reeturns the list of possible values.
func (v LogsMetricType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsMetricType) Ptr() *LogsMetricType
Ptr returns reference to LogsMetricType value.
func (v *LogsMetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateAttributes The log-based metric properties that will be updated.
type LogsMetricUpdateAttributes struct {
// The log-based metric filter. Logs matching this filter will be aggregated in this metric.
Filter *LogsMetricFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []LogsMetricGroupBy `json:"group_by,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateAttributes() *LogsMetricUpdateAttributes
NewLogsMetricUpdateAttributes instantiates a new LogsMetricUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateAttributesWithDefaults() *LogsMetricUpdateAttributes
NewLogsMetricUpdateAttributesWithDefaults instantiates a new LogsMetricUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateAttributes) GetFilter() LogsMetricFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *LogsMetricUpdateAttributes) GetFilterOk() (*LogsMetricFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateAttributes) GetGroupBy() []LogsMetricGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *LogsMetricUpdateAttributes) GetGroupByOk() (*[]LogsMetricGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricUpdateAttributes) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *LogsMetricUpdateAttributes) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o LogsMetricUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateAttributes) SetFilter(v LogsMetricFilter)
SetFilter gets a reference to the given LogsMetricFilter and assigns it to the Filter field.
func (o *LogsMetricUpdateAttributes) SetGroupBy(v []LogsMetricGroupBy)
SetGroupBy gets a reference to the given []LogsMetricGroupBy and assigns it to the GroupBy field.
func (o *LogsMetricUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateData The new log-based metric properties.
type LogsMetricUpdateData struct {
// The log-based metric properties that will be updated.
Attributes LogsMetricUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be logs_metrics.
Type LogsMetricType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateData(attributes LogsMetricUpdateAttributes, typeVar LogsMetricType) *LogsMetricUpdateData
NewLogsMetricUpdateData instantiates a new LogsMetricUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateDataWithDefaults() *LogsMetricUpdateData
NewLogsMetricUpdateDataWithDefaults instantiates a new LogsMetricUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateData) GetAttributes() LogsMetricUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *LogsMetricUpdateData) GetAttributesOk() (*LogsMetricUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *LogsMetricUpdateData) GetType() LogsMetricType
GetType returns the Type field value.
func (o *LogsMetricUpdateData) GetTypeOk() (*LogsMetricType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o LogsMetricUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateData) SetAttributes(v LogsMetricUpdateAttributes)
SetAttributes sets field value.
func (o *LogsMetricUpdateData) SetType(v LogsMetricType)
SetType sets field value.
func (o *LogsMetricUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricUpdateRequest The new log-based metric body.
type LogsMetricUpdateRequest struct {
// The new log-based metric properties.
Data LogsMetricUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricUpdateRequest(data LogsMetricUpdateData) *LogsMetricUpdateRequest
NewLogsMetricUpdateRequest instantiates a new LogsMetricUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricUpdateRequestWithDefaults() *LogsMetricUpdateRequest
NewLogsMetricUpdateRequestWithDefaults instantiates a new LogsMetricUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricUpdateRequest) GetData() LogsMetricUpdateData
GetData returns the Data field value.
func (o *LogsMetricUpdateRequest) GetDataOk() (*LogsMetricUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o LogsMetricUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricUpdateRequest) SetData(v LogsMetricUpdateData)
SetData sets field value.
func (o *LogsMetricUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsMetricsApi service type
type LogsMetricsApi datadog.Service
func NewLogsMetricsApi(client *datadog.APIClient) *LogsMetricsApi
NewLogsMetricsApi Returns NewLogsMetricsApi.
func (a *LogsMetricsApi) CreateLogsMetric(ctx _context.Context, body LogsMetricCreateRequest) (LogsMetricResponse, *_nethttp.Response, error)
CreateLogsMetric Create a log-based metric. Create a metric based on your ingested logs in your organization. Returns the log-based metric object from the request body when the request is successful.
func (a *LogsMetricsApi) DeleteLogsMetric(ctx _context.Context, metricId string) (*_nethttp.Response, error)
DeleteLogsMetric Delete a log-based metric. Delete a specific log-based metric from your organization.
func (a *LogsMetricsApi) GetLogsMetric(ctx _context.Context, metricId string) (LogsMetricResponse, *_nethttp.Response, error)
GetLogsMetric Get a log-based metric. Get a specific log-based metric from your organization.
func (a *LogsMetricsApi) ListLogsMetrics(ctx _context.Context) (LogsMetricsResponse, *_nethttp.Response, error)
ListLogsMetrics Get all log-based metrics. Get the list of configured log-based metrics with their definitions.
func (a *LogsMetricsApi) UpdateLogsMetric(ctx _context.Context, metricId string, body LogsMetricUpdateRequest) (LogsMetricResponse, *_nethttp.Response, error)
UpdateLogsMetric Update a log-based metric. Update a specific log-based metric from your organization. Returns the log-based metric object from the request body when the request is successful.
LogsMetricsResponse All the available log-based metric objects.
type LogsMetricsResponse struct {
// A list of log-based metric objects.
Data []LogsMetricResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsMetricsResponse() *LogsMetricsResponse
NewLogsMetricsResponse instantiates a new LogsMetricsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsMetricsResponseWithDefaults() *LogsMetricsResponse
NewLogsMetricsResponseWithDefaults instantiates a new LogsMetricsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsMetricsResponse) GetData() []LogsMetricResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *LogsMetricsResponse) GetDataOk() (*[]LogsMetricResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsMetricsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o LogsMetricsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsMetricsResponse) SetData(v []LogsMetricResponseData)
SetData gets a reference to the given []LogsMetricResponseData and assigns it to the Data field.
func (o *LogsMetricsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsQueryFilter The search and filter query settings
type LogsQueryFilter struct {
// The minimum time for the requested logs, supports date math and regular timestamps (milliseconds).
From *string `json:"from,omitempty"`
// For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes.
Indexes []string `json:"indexes,omitempty"`
// The search query - following the log search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested logs, supports date math and regular timestamps (milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsQueryFilter() *LogsQueryFilter
NewLogsQueryFilter instantiates a new LogsQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsQueryFilterWithDefaults() *LogsQueryFilter
NewLogsQueryFilterWithDefaults instantiates a new LogsQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetIndexes() []string
GetIndexes returns the Indexes field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetIndexesOk() (*[]string, bool)
GetIndexesOk returns a tuple with the Indexes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *LogsQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasIndexes() bool
HasIndexes returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *LogsQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o LogsQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *LogsQueryFilter) SetIndexes(v []string)
SetIndexes gets a reference to the given []string and assigns it to the Indexes field.
func (o *LogsQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *LogsQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *LogsQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsQueryOptions Global query options that are used during the query. Note: You should only supply timezone or time offset but not both otherwise the query will fail.
type LogsQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"timeOffset,omitempty"`
// The timezone can be specified both as an offset, for example: "UTC+03:00".
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsQueryOptions() *LogsQueryOptions
NewLogsQueryOptions instantiates a new LogsQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsQueryOptionsWithDefaults() *LogsQueryOptions
NewLogsQueryOptionsWithDefaults instantiates a new LogsQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *LogsQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *LogsQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *LogsQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o LogsQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *LogsQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *LogsQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsResponseMetadata The metadata associated with a request
type LogsResponseMetadata struct {
// The time elapsed in milliseconds
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *LogsResponseMetadataPage `json:"page,omitempty"`
// The identifier of the request
RequestId *string `json:"request_id,omitempty"`
// The status of the response
Status *LogsAggregateResponseStatus `json:"status,omitempty"`
// A list of warnings (non fatal errors) encountered, partial results might be returned if
// warnings are present in the response.
Warnings []LogsWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsResponseMetadata() *LogsResponseMetadata
NewLogsResponseMetadata instantiates a new LogsResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsResponseMetadataWithDefaults() *LogsResponseMetadata
NewLogsResponseMetadataWithDefaults instantiates a new LogsResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetPage() LogsResponseMetadataPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetPageOk() (*LogsResponseMetadataPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetStatus() LogsAggregateResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetStatusOk() (*LogsAggregateResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) GetWarnings() []LogsWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *LogsResponseMetadata) GetWarningsOk() (*[]LogsWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *LogsResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o LogsResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *LogsResponseMetadata) SetPage(v LogsResponseMetadataPage)
SetPage gets a reference to the given LogsResponseMetadataPage and assigns it to the Page field.
func (o *LogsResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *LogsResponseMetadata) SetStatus(v LogsAggregateResponseStatus)
SetStatus gets a reference to the given LogsAggregateResponseStatus and assigns it to the Status field.
func (o *LogsResponseMetadata) SetWarnings(v []LogsWarning)
SetWarnings gets a reference to the given []LogsWarning and assigns it to the Warnings field.
func (o *LogsResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsResponseMetadataPage Paging attributes.
type LogsResponseMetadataPage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same.
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsResponseMetadataPage() *LogsResponseMetadataPage
NewLogsResponseMetadataPage instantiates a new LogsResponseMetadataPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsResponseMetadataPageWithDefaults() *LogsResponseMetadataPage
NewLogsResponseMetadataPageWithDefaults instantiates a new LogsResponseMetadataPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsResponseMetadataPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *LogsResponseMetadataPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsResponseMetadataPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o LogsResponseMetadataPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsResponseMetadataPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *LogsResponseMetadataPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
LogsSort Sort parameters when querying logs.
type LogsSort string
List of LogsSort.
const (
LOGSSORT_TIMESTAMP_ASCENDING LogsSort = "timestamp"
LOGSSORT_TIMESTAMP_DESCENDING LogsSort = "-timestamp"
)
func NewLogsSortFromValue(v string) (*LogsSort, error)
NewLogsSortFromValue returns a pointer to a valid LogsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsSort) GetAllowedValues() []LogsSort
GetAllowedValues reeturns the list of possible values.
func (v LogsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsSort) Ptr() *LogsSort
Ptr returns reference to LogsSort value.
func (v *LogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsSortOrder The order to use, ascending or descending
type LogsSortOrder string
List of LogsSortOrder.
const (
LOGSSORTORDER_ASCENDING LogsSortOrder = "asc"
LOGSSORTORDER_DESCENDING LogsSortOrder = "desc"
)
func NewLogsSortOrderFromValue(v string) (*LogsSortOrder, error)
NewLogsSortOrderFromValue returns a pointer to a valid LogsSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *LogsSortOrder) GetAllowedValues() []LogsSortOrder
GetAllowedValues reeturns the list of possible values.
func (v LogsSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v LogsSortOrder) Ptr() *LogsSortOrder
Ptr returns reference to LogsSortOrder value.
func (v *LogsSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
LogsWarning A warning message indicating something that went wrong with the query
type LogsWarning struct {
// A unique code for this type of warning
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewLogsWarning() *LogsWarning
NewLogsWarning instantiates a new LogsWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewLogsWarningWithDefaults() *LogsWarning
NewLogsWarningWithDefaults instantiates a new LogsWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *LogsWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *LogsWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *LogsWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *LogsWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *LogsWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *LogsWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *LogsWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o LogsWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *LogsWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *LogsWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *LogsWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *LogsWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Metric Object for a single metric tag configuration.
type Metric struct {
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric resource type.
Type *MetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetric() *Metric
NewMetric instantiates a new Metric object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricWithDefaults() *Metric
NewMetricWithDefaults instantiates a new Metric object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Metric) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Metric) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Metric) GetType() MetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *Metric) GetTypeOk() (*MetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Metric) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Metric) HasType() bool
HasType returns a boolean if a field has been set.
func (o Metric) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Metric) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Metric) SetType(v MetricType)
SetType gets a reference to the given MetricType and assigns it to the Type field.
func (o *Metric) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricActiveConfigurationType The metric actively queried configuration resource type.
type MetricActiveConfigurationType string
List of MetricActiveConfigurationType.
const (
METRICACTIVECONFIGURATIONTYPE_ACTIVELY_QUERIED_CONFIGURATIONS MetricActiveConfigurationType = "actively_queried_configurations"
)
func NewMetricActiveConfigurationTypeFromValue(v string) (*MetricActiveConfigurationType, error)
NewMetricActiveConfigurationTypeFromValue returns a pointer to a valid MetricActiveConfigurationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricActiveConfigurationType) GetAllowedValues() []MetricActiveConfigurationType
GetAllowedValues reeturns the list of possible values.
func (v MetricActiveConfigurationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricActiveConfigurationType) Ptr() *MetricActiveConfigurationType
Ptr returns reference to MetricActiveConfigurationType value.
func (v *MetricActiveConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricAllTags Object for a single metric's indexed tags.
type MetricAllTags struct {
// Object containing the definition of a metric's tags.
Attributes *MetricAllTagsAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric resource type.
Type *MetricType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTags() *MetricAllTags
NewMetricAllTags instantiates a new MetricAllTags object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsWithDefaults() *MetricAllTags
NewMetricAllTagsWithDefaults instantiates a new MetricAllTags object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTags) GetAttributes() MetricAllTagsAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricAllTags) GetAttributesOk() (*MetricAllTagsAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricAllTags) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) GetType() MetricType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricAllTags) GetTypeOk() (*MetricType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTags) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricAllTags) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricAllTags) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricAllTags) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTags) SetAttributes(v MetricAllTagsAttributes)
SetAttributes gets a reference to the given MetricAllTagsAttributes and assigns it to the Attributes field.
func (o *MetricAllTags) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricAllTags) SetType(v MetricType)
SetType gets a reference to the given MetricType and assigns it to the Type field.
func (o *MetricAllTags) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricAllTagsAttributes Object containing the definition of a metric's tags.
type MetricAllTagsAttributes struct {
// List of indexed tag value pairs.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTagsAttributes() *MetricAllTagsAttributes
NewMetricAllTagsAttributes instantiates a new MetricAllTagsAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsAttributesWithDefaults() *MetricAllTagsAttributes
NewMetricAllTagsAttributesWithDefaults instantiates a new MetricAllTagsAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTagsAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricAllTagsAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTagsAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricAllTagsAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTagsAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricAllTagsAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricAllTagsResponse Response object that includes a single metric's indexed tags.
type MetricAllTagsResponse struct {
// Object for a single metric's indexed tags.
Data *MetricAllTags `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricAllTagsResponse() *MetricAllTagsResponse
NewMetricAllTagsResponse instantiates a new MetricAllTagsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricAllTagsResponseWithDefaults() *MetricAllTagsResponse
NewMetricAllTagsResponseWithDefaults instantiates a new MetricAllTagsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricAllTagsResponse) GetData() MetricAllTags
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricAllTagsResponse) GetDataOk() (*MetricAllTags, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricAllTagsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricAllTagsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricAllTagsResponse) SetData(v MetricAllTags)
SetData gets a reference to the given MetricAllTags and assigns it to the Data field.
func (o *MetricAllTagsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkConfigureTagsType The metric bulk configure tags resource.
type MetricBulkConfigureTagsType string
List of MetricBulkConfigureTagsType.
const (
METRICBULKCONFIGURETAGSTYPE_BULK_MANAGE_TAGS MetricBulkConfigureTagsType = "metric_bulk_configure_tags"
)
func NewMetricBulkConfigureTagsTypeFromValue(v string) (*MetricBulkConfigureTagsType, error)
NewMetricBulkConfigureTagsTypeFromValue returns a pointer to a valid MetricBulkConfigureTagsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricBulkConfigureTagsType) GetAllowedValues() []MetricBulkConfigureTagsType
GetAllowedValues reeturns the list of possible values.
func (v MetricBulkConfigureTagsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricBulkConfigureTagsType) Ptr() *MetricBulkConfigureTagsType
Ptr returns reference to MetricBulkConfigureTagsType value.
func (v *MetricBulkConfigureTagsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreate Request object to bulk configure tags for metrics matching the given prefix.
type MetricBulkTagConfigCreate struct {
// Optional parameters for bulk creating metric tag configurations.
Attributes *MetricBulkTagConfigCreateAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreate(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigCreate
NewMetricBulkTagConfigCreate instantiates a new MetricBulkTagConfigCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateWithDefaults() *MetricBulkTagConfigCreate
NewMetricBulkTagConfigCreateWithDefaults instantiates a new MetricBulkTagConfigCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreate) GetAttributes() MetricBulkTagConfigCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreate) GetAttributesOk() (*MetricBulkTagConfigCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigCreate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigCreate) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreate) SetAttributes(v MetricBulkTagConfigCreateAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigCreateAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigCreate) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigCreate) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreateAttributes Optional parameters for bulk creating metric tag configurations.
type MetricBulkTagConfigCreateAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// A list of tag names to apply to the configuration.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreateAttributes() *MetricBulkTagConfigCreateAttributes
NewMetricBulkTagConfigCreateAttributes instantiates a new MetricBulkTagConfigCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateAttributesWithDefaults() *MetricBulkTagConfigCreateAttributes
NewMetricBulkTagConfigCreateAttributesWithDefaults instantiates a new MetricBulkTagConfigCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreateAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreateAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreateAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricBulkTagConfigCreateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigCreateAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o *MetricBulkTagConfigCreateAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricBulkTagConfigCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreateAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigCreateAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricBulkTagConfigCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigCreateRequest Wrapper object for a single bulk tag configuration request.
type MetricBulkTagConfigCreateRequest struct {
// Request object to bulk configure tags for metrics matching the given prefix.
Data MetricBulkTagConfigCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigCreateRequest(data MetricBulkTagConfigCreate) *MetricBulkTagConfigCreateRequest
NewMetricBulkTagConfigCreateRequest instantiates a new MetricBulkTagConfigCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigCreateRequestWithDefaults() *MetricBulkTagConfigCreateRequest
NewMetricBulkTagConfigCreateRequestWithDefaults instantiates a new MetricBulkTagConfigCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigCreateRequest) GetData() MetricBulkTagConfigCreate
GetData returns the Data field value.
func (o *MetricBulkTagConfigCreateRequest) GetDataOk() (*MetricBulkTagConfigCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricBulkTagConfigCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigCreateRequest) SetData(v MetricBulkTagConfigCreate)
SetData sets field value.
func (o *MetricBulkTagConfigCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDelete Request object to bulk delete all tag configurations for metrics matching the given prefix.
type MetricBulkTagConfigDelete struct {
// Optional parameters for bulk deleting metric tag configurations.
Attributes *MetricBulkTagConfigDeleteAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDelete(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigDelete
NewMetricBulkTagConfigDelete instantiates a new MetricBulkTagConfigDelete object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteWithDefaults() *MetricBulkTagConfigDelete
NewMetricBulkTagConfigDeleteWithDefaults instantiates a new MetricBulkTagConfigDelete object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDelete) GetAttributes() MetricBulkTagConfigDeleteAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigDelete) GetAttributesOk() (*MetricBulkTagConfigDeleteAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigDelete) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigDelete) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDelete) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigDelete) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDelete) SetAttributes(v MetricBulkTagConfigDeleteAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigDeleteAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigDelete) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigDelete) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigDelete) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDeleteAttributes Optional parameters for bulk deleting metric tag configurations.
type MetricBulkTagConfigDeleteAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDeleteAttributes() *MetricBulkTagConfigDeleteAttributes
NewMetricBulkTagConfigDeleteAttributes instantiates a new MetricBulkTagConfigDeleteAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteAttributesWithDefaults() *MetricBulkTagConfigDeleteAttributes
NewMetricBulkTagConfigDeleteAttributesWithDefaults instantiates a new MetricBulkTagConfigDeleteAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDeleteAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigDeleteAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigDeleteAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o MetricBulkTagConfigDeleteAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDeleteAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigDeleteAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigDeleteRequest Wrapper object for a single bulk tag deletion request.
type MetricBulkTagConfigDeleteRequest struct {
// Request object to bulk delete all tag configurations for metrics matching the given prefix.
Data MetricBulkTagConfigDelete `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigDeleteRequest(data MetricBulkTagConfigDelete) *MetricBulkTagConfigDeleteRequest
NewMetricBulkTagConfigDeleteRequest instantiates a new MetricBulkTagConfigDeleteRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigDeleteRequestWithDefaults() *MetricBulkTagConfigDeleteRequest
NewMetricBulkTagConfigDeleteRequestWithDefaults instantiates a new MetricBulkTagConfigDeleteRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigDeleteRequest) GetData() MetricBulkTagConfigDelete
GetData returns the Data field value.
func (o *MetricBulkTagConfigDeleteRequest) GetDataOk() (*MetricBulkTagConfigDelete, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricBulkTagConfigDeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigDeleteRequest) SetData(v MetricBulkTagConfigDelete)
SetData sets field value.
func (o *MetricBulkTagConfigDeleteRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigResponse Wrapper for a single bulk tag configuration status response.
type MetricBulkTagConfigResponse struct {
// The status of a request to bulk configure metric tags.
// It contains the fields from the original request for reference.
Data *MetricBulkTagConfigStatus `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigResponse() *MetricBulkTagConfigResponse
NewMetricBulkTagConfigResponse instantiates a new MetricBulkTagConfigResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigResponseWithDefaults() *MetricBulkTagConfigResponse
NewMetricBulkTagConfigResponseWithDefaults instantiates a new MetricBulkTagConfigResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigResponse) GetData() MetricBulkTagConfigStatus
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricBulkTagConfigResponse) GetDataOk() (*MetricBulkTagConfigStatus, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricBulkTagConfigResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigResponse) SetData(v MetricBulkTagConfigStatus)
SetData gets a reference to the given MetricBulkTagConfigStatus and assigns it to the Data field.
func (o *MetricBulkTagConfigResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigStatus The status of a request to bulk configure metric tags. It contains the fields from the original request for reference.
type MetricBulkTagConfigStatus struct {
// Optional attributes for the status of a bulk tag configuration request.
Attributes *MetricBulkTagConfigStatusAttributes `json:"attributes,omitempty"`
// A text prefix to match against metric names.
Id string `json:"id"`
// The metric bulk configure tags resource.
Type MetricBulkConfigureTagsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigStatus(id string, typeVar MetricBulkConfigureTagsType) *MetricBulkTagConfigStatus
NewMetricBulkTagConfigStatus instantiates a new MetricBulkTagConfigStatus object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigStatusWithDefaults() *MetricBulkTagConfigStatus
NewMetricBulkTagConfigStatusWithDefaults instantiates a new MetricBulkTagConfigStatus object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigStatus) GetAttributes() MetricBulkTagConfigStatusAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatus) GetAttributesOk() (*MetricBulkTagConfigStatusAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) GetId() string
GetId returns the Id field value.
func (o *MetricBulkTagConfigStatus) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) GetType() MetricBulkConfigureTagsType
GetType returns the Type field value.
func (o *MetricBulkTagConfigStatus) GetTypeOk() (*MetricBulkConfigureTagsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatus) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricBulkTagConfigStatus) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigStatus) SetAttributes(v MetricBulkTagConfigStatusAttributes)
SetAttributes gets a reference to the given MetricBulkTagConfigStatusAttributes and assigns it to the Attributes field.
func (o *MetricBulkTagConfigStatus) SetId(v string)
SetId sets field value.
func (o *MetricBulkTagConfigStatus) SetType(v MetricBulkConfigureTagsType)
SetType sets field value.
func (o *MetricBulkTagConfigStatus) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricBulkTagConfigStatusAttributes Optional attributes for the status of a bulk tag configuration request.
type MetricBulkTagConfigStatusAttributes struct {
// A list of account emails to notify when the configuration is applied.
Emails []string `json:"emails,omitempty"`
// The status of the request.
Status *string `json:"status,omitempty"`
// A list of tag names to apply to the configuration.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricBulkTagConfigStatusAttributes() *MetricBulkTagConfigStatusAttributes
NewMetricBulkTagConfigStatusAttributes instantiates a new MetricBulkTagConfigStatusAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricBulkTagConfigStatusAttributesWithDefaults() *MetricBulkTagConfigStatusAttributes
NewMetricBulkTagConfigStatusAttributesWithDefaults instantiates a new MetricBulkTagConfigStatusAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricBulkTagConfigStatusAttributes) GetEmails() []string
GetEmails returns the Emails field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetEmailsOk() (*[]string, bool)
GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricBulkTagConfigStatusAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasEmails() bool
HasEmails returns a boolean if a field has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *MetricBulkTagConfigStatusAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricBulkTagConfigStatusAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricBulkTagConfigStatusAttributes) SetEmails(v []string)
SetEmails gets a reference to the given []string and assigns it to the Emails field.
func (o *MetricBulkTagConfigStatusAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *MetricBulkTagConfigStatusAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricBulkTagConfigStatusAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricContentEncoding HTTP header used to compress the media-type.
type MetricContentEncoding string
List of MetricContentEncoding.
const (
METRICCONTENTENCODING_DEFLATE MetricContentEncoding = "deflate"
METRICCONTENTENCODING_ZSTD1 MetricContentEncoding = "zstd1"
METRICCONTENTENCODING_GZIP MetricContentEncoding = "gzip"
)
func NewMetricContentEncodingFromValue(v string) (*MetricContentEncoding, error)
NewMetricContentEncodingFromValue returns a pointer to a valid MetricContentEncoding for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricContentEncoding) GetAllowedValues() []MetricContentEncoding
GetAllowedValues reeturns the list of possible values.
func (v MetricContentEncoding) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricContentEncoding) Ptr() *MetricContentEncoding
Ptr returns reference to MetricContentEncoding value.
func (v *MetricContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricCustomAggregation A time and space aggregation combination for use in query.
type MetricCustomAggregation struct {
// A space aggregation for use in query.
Space MetricCustomSpaceAggregation `json:"space"`
// A time aggregation for use in query.
Time MetricCustomTimeAggregation `json:"time"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricCustomAggregation(space MetricCustomSpaceAggregation, time MetricCustomTimeAggregation) *MetricCustomAggregation
NewMetricCustomAggregation instantiates a new MetricCustomAggregation object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricCustomAggregationWithDefaults() *MetricCustomAggregation
NewMetricCustomAggregationWithDefaults instantiates a new MetricCustomAggregation object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricCustomAggregation) GetSpace() MetricCustomSpaceAggregation
GetSpace returns the Space field value.
func (o *MetricCustomAggregation) GetSpaceOk() (*MetricCustomSpaceAggregation, bool)
GetSpaceOk returns a tuple with the Space field value and a boolean to check if the value has been set.
func (o *MetricCustomAggregation) GetTime() MetricCustomTimeAggregation
GetTime returns the Time field value.
func (o *MetricCustomAggregation) GetTimeOk() (*MetricCustomTimeAggregation, bool)
GetTimeOk returns a tuple with the Time field value and a boolean to check if the value has been set.
func (o MetricCustomAggregation) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricCustomAggregation) SetSpace(v MetricCustomSpaceAggregation)
SetSpace sets field value.
func (o *MetricCustomAggregation) SetTime(v MetricCustomTimeAggregation)
SetTime sets field value.
func (o *MetricCustomAggregation) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricCustomSpaceAggregation A space aggregation for use in query.
type MetricCustomSpaceAggregation string
List of MetricCustomSpaceAggregation.
const (
METRICCUSTOMSPACEAGGREGATION_AVG MetricCustomSpaceAggregation = "avg"
METRICCUSTOMSPACEAGGREGATION_MAX MetricCustomSpaceAggregation = "max"
METRICCUSTOMSPACEAGGREGATION_MIN MetricCustomSpaceAggregation = "min"
METRICCUSTOMSPACEAGGREGATION_SUM MetricCustomSpaceAggregation = "sum"
)
func NewMetricCustomSpaceAggregationFromValue(v string) (*MetricCustomSpaceAggregation, error)
NewMetricCustomSpaceAggregationFromValue returns a pointer to a valid MetricCustomSpaceAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricCustomSpaceAggregation) GetAllowedValues() []MetricCustomSpaceAggregation
GetAllowedValues reeturns the list of possible values.
func (v MetricCustomSpaceAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricCustomSpaceAggregation) Ptr() *MetricCustomSpaceAggregation
Ptr returns reference to MetricCustomSpaceAggregation value.
func (v *MetricCustomSpaceAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricCustomTimeAggregation A time aggregation for use in query.
type MetricCustomTimeAggregation string
List of MetricCustomTimeAggregation.
const (
METRICCUSTOMTIMEAGGREGATION_AVG MetricCustomTimeAggregation = "avg"
METRICCUSTOMTIMEAGGREGATION_COUNT MetricCustomTimeAggregation = "count"
METRICCUSTOMTIMEAGGREGATION_MAX MetricCustomTimeAggregation = "max"
METRICCUSTOMTIMEAGGREGATION_MIN MetricCustomTimeAggregation = "min"
METRICCUSTOMTIMEAGGREGATION_SUM MetricCustomTimeAggregation = "sum"
)
func NewMetricCustomTimeAggregationFromValue(v string) (*MetricCustomTimeAggregation, error)
NewMetricCustomTimeAggregationFromValue returns a pointer to a valid MetricCustomTimeAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricCustomTimeAggregation) GetAllowedValues() []MetricCustomTimeAggregation
GetAllowedValues reeturns the list of possible values.
func (v MetricCustomTimeAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricCustomTimeAggregation) Ptr() *MetricCustomTimeAggregation
Ptr returns reference to MetricCustomTimeAggregation value.
func (v *MetricCustomTimeAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricDistinctVolume Object for a single metric's distinct volume.
type MetricDistinctVolume struct {
// Object containing the definition of a metric's distinct volume.
Attributes *MetricDistinctVolumeAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric distinct volume type.
Type *MetricDistinctVolumeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricDistinctVolume() *MetricDistinctVolume
NewMetricDistinctVolume instantiates a new MetricDistinctVolume object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricDistinctVolumeWithDefaults() *MetricDistinctVolume
NewMetricDistinctVolumeWithDefaults instantiates a new MetricDistinctVolume object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricDistinctVolume) GetAttributes() MetricDistinctVolumeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetAttributesOk() (*MetricDistinctVolumeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) GetType() MetricDistinctVolumeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricDistinctVolume) GetTypeOk() (*MetricDistinctVolumeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolume) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricDistinctVolume) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricDistinctVolume) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricDistinctVolume) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricDistinctVolume) SetAttributes(v MetricDistinctVolumeAttributes)
SetAttributes gets a reference to the given MetricDistinctVolumeAttributes and assigns it to the Attributes field.
func (o *MetricDistinctVolume) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricDistinctVolume) SetType(v MetricDistinctVolumeType)
SetType gets a reference to the given MetricDistinctVolumeType and assigns it to the Type field.
func (o *MetricDistinctVolume) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricDistinctVolumeAttributes Object containing the definition of a metric's distinct volume.
type MetricDistinctVolumeAttributes struct {
// Distinct volume for the given metric.
DistinctVolume *int64 `json:"distinct_volume,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricDistinctVolumeAttributes() *MetricDistinctVolumeAttributes
NewMetricDistinctVolumeAttributes instantiates a new MetricDistinctVolumeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricDistinctVolumeAttributesWithDefaults() *MetricDistinctVolumeAttributes
NewMetricDistinctVolumeAttributesWithDefaults instantiates a new MetricDistinctVolumeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricDistinctVolumeAttributes) GetDistinctVolume() int64
GetDistinctVolume returns the DistinctVolume field value if set, zero value otherwise.
func (o *MetricDistinctVolumeAttributes) GetDistinctVolumeOk() (*int64, bool)
GetDistinctVolumeOk returns a tuple with the DistinctVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricDistinctVolumeAttributes) HasDistinctVolume() bool
HasDistinctVolume returns a boolean if a field has been set.
func (o MetricDistinctVolumeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricDistinctVolumeAttributes) SetDistinctVolume(v int64)
SetDistinctVolume gets a reference to the given int64 and assigns it to the DistinctVolume field.
func (o *MetricDistinctVolumeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricDistinctVolumeType The metric distinct volume type.
type MetricDistinctVolumeType string
List of MetricDistinctVolumeType.
const (
METRICDISTINCTVOLUMETYPE_DISTINCT_METRIC_VOLUMES MetricDistinctVolumeType = "distinct_metric_volumes"
)
func NewMetricDistinctVolumeTypeFromValue(v string) (*MetricDistinctVolumeType, error)
NewMetricDistinctVolumeTypeFromValue returns a pointer to a valid MetricDistinctVolumeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricDistinctVolumeType) GetAllowedValues() []MetricDistinctVolumeType
GetAllowedValues reeturns the list of possible values.
func (v MetricDistinctVolumeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricDistinctVolumeType) Ptr() *MetricDistinctVolumeType
Ptr returns reference to MetricDistinctVolumeType value.
func (v *MetricDistinctVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricEstimate Object for a metric cardinality estimate.
type MetricEstimate struct {
// Object containing the definition of a metric estimate attribute.
Attributes *MetricEstimateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric estimate resource type.
Type *MetricEstimateResourceType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimate() *MetricEstimate
NewMetricEstimate instantiates a new MetricEstimate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateWithDefaults() *MetricEstimate
NewMetricEstimateWithDefaults instantiates a new MetricEstimate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimate) GetAttributes() MetricEstimateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricEstimate) GetAttributesOk() (*MetricEstimateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricEstimate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) GetType() MetricEstimateResourceType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricEstimate) GetTypeOk() (*MetricEstimateResourceType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricEstimate) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricEstimate) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricEstimate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimate) SetAttributes(v MetricEstimateAttributes)
SetAttributes gets a reference to the given MetricEstimateAttributes and assigns it to the Attributes field.
func (o *MetricEstimate) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricEstimate) SetType(v MetricEstimateResourceType)
SetType gets a reference to the given MetricEstimateResourceType and assigns it to the Type field.
func (o *MetricEstimate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateAttributes Object containing the definition of a metric estimate attribute.
type MetricEstimateAttributes struct {
// Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
EstimateType *MetricEstimateType `json:"estimate_type,omitempty"`
// Timestamp when the cardinality estimate was requested.
EstimatedAt *time.Time `json:"estimated_at,omitempty"`
// Estimated cardinality of the metric based on the queried configuration.
EstimatedOutputSeries *int64 `json:"estimated_output_series,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimateAttributes() *MetricEstimateAttributes
NewMetricEstimateAttributes instantiates a new MetricEstimateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateAttributesWithDefaults() *MetricEstimateAttributes
NewMetricEstimateAttributesWithDefaults instantiates a new MetricEstimateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimateAttributes) GetEstimateType() MetricEstimateType
GetEstimateType returns the EstimateType field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimateTypeOk() (*MetricEstimateType, bool)
GetEstimateTypeOk returns a tuple with the EstimateType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) GetEstimatedAt() time.Time
GetEstimatedAt returns the EstimatedAt field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimatedAtOk() (*time.Time, bool)
GetEstimatedAtOk returns a tuple with the EstimatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) GetEstimatedOutputSeries() int64
GetEstimatedOutputSeries returns the EstimatedOutputSeries field value if set, zero value otherwise.
func (o *MetricEstimateAttributes) GetEstimatedOutputSeriesOk() (*int64, bool)
GetEstimatedOutputSeriesOk returns a tuple with the EstimatedOutputSeries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateAttributes) HasEstimateType() bool
HasEstimateType returns a boolean if a field has been set.
func (o *MetricEstimateAttributes) HasEstimatedAt() bool
HasEstimatedAt returns a boolean if a field has been set.
func (o *MetricEstimateAttributes) HasEstimatedOutputSeries() bool
HasEstimatedOutputSeries returns a boolean if a field has been set.
func (o MetricEstimateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimateAttributes) SetEstimateType(v MetricEstimateType)
SetEstimateType gets a reference to the given MetricEstimateType and assigns it to the EstimateType field.
func (o *MetricEstimateAttributes) SetEstimatedAt(v time.Time)
SetEstimatedAt gets a reference to the given time.Time and assigns it to the EstimatedAt field.
func (o *MetricEstimateAttributes) SetEstimatedOutputSeries(v int64)
SetEstimatedOutputSeries gets a reference to the given int64 and assigns it to the EstimatedOutputSeries field.
func (o *MetricEstimateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateResourceType The metric estimate resource type.
type MetricEstimateResourceType string
List of MetricEstimateResourceType.
const (
METRICESTIMATERESOURCETYPE_METRIC_CARDINALITY_ESTIMATE MetricEstimateResourceType = "metric_cardinality_estimate"
)
func NewMetricEstimateResourceTypeFromValue(v string) (*MetricEstimateResourceType, error)
NewMetricEstimateResourceTypeFromValue returns a pointer to a valid MetricEstimateResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricEstimateResourceType) GetAllowedValues() []MetricEstimateResourceType
GetAllowedValues reeturns the list of possible values.
func (v MetricEstimateResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricEstimateResourceType) Ptr() *MetricEstimateResourceType
Ptr returns reference to MetricEstimateResourceType value.
func (v *MetricEstimateResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricEstimateResponse Response object that includes metric cardinality estimates.
type MetricEstimateResponse struct {
// Object for a metric cardinality estimate.
Data *MetricEstimate `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricEstimateResponse() *MetricEstimateResponse
NewMetricEstimateResponse instantiates a new MetricEstimateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricEstimateResponseWithDefaults() *MetricEstimateResponse
NewMetricEstimateResponseWithDefaults instantiates a new MetricEstimateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricEstimateResponse) GetData() MetricEstimate
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricEstimateResponse) GetDataOk() (*MetricEstimate, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricEstimateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricEstimateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricEstimateResponse) SetData(v MetricEstimate)
SetData gets a reference to the given MetricEstimate and assigns it to the Data field.
func (o *MetricEstimateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricEstimateType Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
type MetricEstimateType string
List of MetricEstimateType.
const (
METRICESTIMATETYPE_COUNT_OR_GAUGE MetricEstimateType = "count_or_gauge"
METRICESTIMATETYPE_DISTRIBUTION MetricEstimateType = "distribution"
METRICESTIMATETYPE_PERCENTILE MetricEstimateType = "percentile"
)
func NewMetricEstimateTypeFromValue(v string) (*MetricEstimateType, error)
NewMetricEstimateTypeFromValue returns a pointer to a valid MetricEstimateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricEstimateType) GetAllowedValues() []MetricEstimateType
GetAllowedValues reeturns the list of possible values.
func (v MetricEstimateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricEstimateType) Ptr() *MetricEstimateType
Ptr returns reference to MetricEstimateType value.
func (v *MetricEstimateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolume Object for a single metric's ingested and indexed volume.
type MetricIngestedIndexedVolume struct {
// Object containing the definition of a metric's ingested and indexed volume.
Attributes *MetricIngestedIndexedVolumeAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric ingested and indexed volume type.
Type *MetricIngestedIndexedVolumeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricIngestedIndexedVolume() *MetricIngestedIndexedVolume
NewMetricIngestedIndexedVolume instantiates a new MetricIngestedIndexedVolume object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricIngestedIndexedVolumeWithDefaults() *MetricIngestedIndexedVolume
NewMetricIngestedIndexedVolumeWithDefaults instantiates a new MetricIngestedIndexedVolume object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricIngestedIndexedVolume) GetAttributes() MetricIngestedIndexedVolumeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetAttributesOk() (*MetricIngestedIndexedVolumeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) GetType() MetricIngestedIndexedVolumeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolume) GetTypeOk() (*MetricIngestedIndexedVolumeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolume) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolume) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolume) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricIngestedIndexedVolume) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricIngestedIndexedVolume) SetAttributes(v MetricIngestedIndexedVolumeAttributes)
SetAttributes gets a reference to the given MetricIngestedIndexedVolumeAttributes and assigns it to the Attributes field.
func (o *MetricIngestedIndexedVolume) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricIngestedIndexedVolume) SetType(v MetricIngestedIndexedVolumeType)
SetType gets a reference to the given MetricIngestedIndexedVolumeType and assigns it to the Type field.
func (o *MetricIngestedIndexedVolume) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolumeAttributes Object containing the definition of a metric's ingested and indexed volume.
type MetricIngestedIndexedVolumeAttributes struct {
// Indexed volume for the given metric.
IndexedVolume *int64 `json:"indexed_volume,omitempty"`
// Ingested volume for the given metric.
IngestedVolume *int64 `json:"ingested_volume,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricIngestedIndexedVolumeAttributes() *MetricIngestedIndexedVolumeAttributes
NewMetricIngestedIndexedVolumeAttributes instantiates a new MetricIngestedIndexedVolumeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricIngestedIndexedVolumeAttributesWithDefaults() *MetricIngestedIndexedVolumeAttributes
NewMetricIngestedIndexedVolumeAttributesWithDefaults instantiates a new MetricIngestedIndexedVolumeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricIngestedIndexedVolumeAttributes) GetIndexedVolume() int64
GetIndexedVolume returns the IndexedVolume field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolumeAttributes) GetIndexedVolumeOk() (*int64, bool)
GetIndexedVolumeOk returns a tuple with the IndexedVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolumeAttributes) GetIngestedVolume() int64
GetIngestedVolume returns the IngestedVolume field value if set, zero value otherwise.
func (o *MetricIngestedIndexedVolumeAttributes) GetIngestedVolumeOk() (*int64, bool)
GetIngestedVolumeOk returns a tuple with the IngestedVolume field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricIngestedIndexedVolumeAttributes) HasIndexedVolume() bool
HasIndexedVolume returns a boolean if a field has been set.
func (o *MetricIngestedIndexedVolumeAttributes) HasIngestedVolume() bool
HasIngestedVolume returns a boolean if a field has been set.
func (o MetricIngestedIndexedVolumeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricIngestedIndexedVolumeAttributes) SetIndexedVolume(v int64)
SetIndexedVolume gets a reference to the given int64 and assigns it to the IndexedVolume field.
func (o *MetricIngestedIndexedVolumeAttributes) SetIngestedVolume(v int64)
SetIngestedVolume gets a reference to the given int64 and assigns it to the IngestedVolume field.
func (o *MetricIngestedIndexedVolumeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricIngestedIndexedVolumeType The metric ingested and indexed volume type.
type MetricIngestedIndexedVolumeType string
List of MetricIngestedIndexedVolumeType.
const (
METRICINGESTEDINDEXEDVOLUMETYPE_METRIC_VOLUMES MetricIngestedIndexedVolumeType = "metric_volumes"
)
func NewMetricIngestedIndexedVolumeTypeFromValue(v string) (*MetricIngestedIndexedVolumeType, error)
NewMetricIngestedIndexedVolumeTypeFromValue returns a pointer to a valid MetricIngestedIndexedVolumeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricIngestedIndexedVolumeType) GetAllowedValues() []MetricIngestedIndexedVolumeType
GetAllowedValues reeturns the list of possible values.
func (v MetricIngestedIndexedVolumeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricIngestedIndexedVolumeType) Ptr() *MetricIngestedIndexedVolumeType
Ptr returns reference to MetricIngestedIndexedVolumeType value.
func (v *MetricIngestedIndexedVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricIntakeType The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge).
type MetricIntakeType int32
List of MetricIntakeType.
const (
METRICINTAKETYPE_UNSPECIFIED MetricIntakeType = 0
METRICINTAKETYPE_COUNT MetricIntakeType = 1
METRICINTAKETYPE_RATE MetricIntakeType = 2
METRICINTAKETYPE_GAUGE MetricIntakeType = 3
)
func NewMetricIntakeTypeFromValue(v int32) (*MetricIntakeType, error)
NewMetricIntakeTypeFromValue returns a pointer to a valid MetricIntakeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricIntakeType) GetAllowedValues() []MetricIntakeType
GetAllowedValues reeturns the list of possible values.
func (v MetricIntakeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricIntakeType) Ptr() *MetricIntakeType
Ptr returns reference to MetricIntakeType value.
func (v *MetricIntakeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricMetadata Metadata for the metric.
type MetricMetadata struct {
// Metric origin information.
Origin *MetricOrigin `json:"origin,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricMetadata() *MetricMetadata
NewMetricMetadata instantiates a new MetricMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricMetadataWithDefaults() *MetricMetadata
NewMetricMetadataWithDefaults instantiates a new MetricMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricMetadata) GetOrigin() MetricOrigin
GetOrigin returns the Origin field value if set, zero value otherwise.
func (o *MetricMetadata) GetOriginOk() (*MetricOrigin, bool)
GetOriginOk returns a tuple with the Origin field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricMetadata) HasOrigin() bool
HasOrigin returns a boolean if a field has been set.
func (o MetricMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricMetadata) SetOrigin(v MetricOrigin)
SetOrigin gets a reference to the given MetricOrigin and assigns it to the Origin field.
func (o *MetricMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricOrigin Metric origin information.
type MetricOrigin struct {
// The origin metric type code
MetricType *int32 `json:"metric_type,omitempty"`
// The origin product code
Product *int32 `json:"product,omitempty"`
// The origin service code
Service *int32 `json:"service,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricOrigin() *MetricOrigin
NewMetricOrigin instantiates a new MetricOrigin object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricOriginWithDefaults() *MetricOrigin
NewMetricOriginWithDefaults instantiates a new MetricOrigin object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricOrigin) GetMetricType() int32
GetMetricType returns the MetricType field value if set, zero value otherwise.
func (o *MetricOrigin) GetMetricTypeOk() (*int32, bool)
GetMetricTypeOk returns a tuple with the MetricType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) GetProduct() int32
GetProduct returns the Product field value if set, zero value otherwise.
func (o *MetricOrigin) GetProductOk() (*int32, bool)
GetProductOk returns a tuple with the Product field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) GetService() int32
GetService returns the Service field value if set, zero value otherwise.
func (o *MetricOrigin) GetServiceOk() (*int32, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricOrigin) HasMetricType() bool
HasMetricType returns a boolean if a field has been set.
func (o *MetricOrigin) HasProduct() bool
HasProduct returns a boolean if a field has been set.
func (o *MetricOrigin) HasService() bool
HasService returns a boolean if a field has been set.
func (o MetricOrigin) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricOrigin) SetMetricType(v int32)
SetMetricType gets a reference to the given int32 and assigns it to the MetricType field.
func (o *MetricOrigin) SetProduct(v int32)
SetProduct gets a reference to the given int32 and assigns it to the Product field.
func (o *MetricOrigin) SetService(v int32)
SetService gets a reference to the given int32 and assigns it to the Service field.
func (o *MetricOrigin) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricPayload The metrics' payload.
type MetricPayload struct {
// A list of time series to submit to Datadog.
Series []MetricSeries `json:"series"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricPayload(series []MetricSeries) *MetricPayload
NewMetricPayload instantiates a new MetricPayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricPayloadWithDefaults() *MetricPayload
NewMetricPayloadWithDefaults instantiates a new MetricPayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricPayload) GetSeries() []MetricSeries
GetSeries returns the Series field value.
func (o *MetricPayload) GetSeriesOk() (*[]MetricSeries, bool)
GetSeriesOk returns a tuple with the Series field value and a boolean to check if the value has been set.
func (o MetricPayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricPayload) SetSeries(v []MetricSeries)
SetSeries sets field value.
func (o *MetricPayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricPoint A point object is of the form `{POSIX_timestamp, numeric_value}`.
type MetricPoint struct {
// The timestamp should be in seconds and current.
// Current is defined as not more than 10 minutes in the future or more than 1 hour in the past.
Timestamp *int64 `json:"timestamp,omitempty"`
// The numeric value format should be a 64bit float gauge-type value.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricPoint() *MetricPoint
NewMetricPoint instantiates a new MetricPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricPointWithDefaults() *MetricPoint
NewMetricPointWithDefaults instantiates a new MetricPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricPoint) GetTimestamp() int64
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *MetricPoint) GetTimestampOk() (*int64, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *MetricPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricPoint) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *MetricPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o MetricPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricPoint) SetTimestamp(v int64)
SetTimestamp gets a reference to the given int64 and assigns it to the Timestamp field.
func (o *MetricPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *MetricPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricResource Metric resource.
type MetricResource struct {
// The name of the resource.
Name *string `json:"name,omitempty"`
// The type of the resource.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricResource() *MetricResource
NewMetricResource instantiates a new MetricResource object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricResourceWithDefaults() *MetricResource
NewMetricResourceWithDefaults instantiates a new MetricResource object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricResource) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MetricResource) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricResource) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricResource) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricResource) HasName() bool
HasName returns a boolean if a field has been set.
func (o *MetricResource) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricResource) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricResource) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MetricResource) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *MetricResource) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSeries A metric to submit to Datadog. See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties).
type MetricSeries struct {
// If the type of the metric is rate or count, define the corresponding interval.
Interval *int64 `json:"interval,omitempty"`
// Metadata for the metric.
Metadata *MetricMetadata `json:"metadata,omitempty"`
// The name of the timeseries.
Metric string `json:"metric"`
// Points relating to a metric. All points must be objects with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past.
Points []MetricPoint `json:"points"`
// A list of resources to associate with this metric.
Resources []MetricResource `json:"resources,omitempty"`
// The source type name.
SourceTypeName *string `json:"source_type_name,omitempty"`
// A list of tags associated with the metric.
Tags []string `json:"tags,omitempty"`
// The type of metric. The available types are `0` (unspecified), `1` (count), `2` (rate), and `3` (gauge).
Type *MetricIntakeType `json:"type,omitempty"`
// The unit of point value.
Unit *string `json:"unit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSeries(metric string, points []MetricPoint) *MetricSeries
NewMetricSeries instantiates a new MetricSeries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSeriesWithDefaults() *MetricSeries
NewMetricSeriesWithDefaults instantiates a new MetricSeries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSeries) GetInterval() int64
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *MetricSeries) GetIntervalOk() (*int64, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetMetadata() MetricMetadata
GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *MetricSeries) GetMetadataOk() (*MetricMetadata, bool)
GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetMetric() string
GetMetric returns the Metric field value.
func (o *MetricSeries) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value and a boolean to check if the value has been set.
func (o *MetricSeries) GetPoints() []MetricPoint
GetPoints returns the Points field value.
func (o *MetricSeries) GetPointsOk() (*[]MetricPoint, bool)
GetPointsOk returns a tuple with the Points field value and a boolean to check if the value has been set.
func (o *MetricSeries) GetResources() []MetricResource
GetResources returns the Resources field value if set, zero value otherwise.
func (o *MetricSeries) GetResourcesOk() (*[]MetricResource, bool)
GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetSourceTypeName() string
GetSourceTypeName returns the SourceTypeName field value if set, zero value otherwise.
func (o *MetricSeries) GetSourceTypeNameOk() (*string, bool)
GetSourceTypeNameOk returns a tuple with the SourceTypeName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricSeries) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetType() MetricIntakeType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricSeries) GetTypeOk() (*MetricIntakeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) GetUnit() string
GetUnit returns the Unit field value if set, zero value otherwise.
func (o *MetricSeries) GetUnitOk() (*string, bool)
GetUnitOk returns a tuple with the Unit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSeries) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *MetricSeries) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (o *MetricSeries) HasResources() bool
HasResources returns a boolean if a field has been set.
func (o *MetricSeries) HasSourceTypeName() bool
HasSourceTypeName returns a boolean if a field has been set.
func (o *MetricSeries) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *MetricSeries) HasType() bool
HasType returns a boolean if a field has been set.
func (o *MetricSeries) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o MetricSeries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSeries) SetInterval(v int64)
SetInterval gets a reference to the given int64 and assigns it to the Interval field.
func (o *MetricSeries) SetMetadata(v MetricMetadata)
SetMetadata gets a reference to the given MetricMetadata and assigns it to the Metadata field.
func (o *MetricSeries) SetMetric(v string)
SetMetric sets field value.
func (o *MetricSeries) SetPoints(v []MetricPoint)
SetPoints sets field value.
func (o *MetricSeries) SetResources(v []MetricResource)
SetResources gets a reference to the given []MetricResource and assigns it to the Resources field.
func (o *MetricSeries) SetSourceTypeName(v string)
SetSourceTypeName gets a reference to the given string and assigns it to the SourceTypeName field.
func (o *MetricSeries) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricSeries) SetType(v MetricIntakeType)
SetType gets a reference to the given MetricIntakeType and assigns it to the Type field.
func (o *MetricSeries) SetUnit(v string)
SetUnit gets a reference to the given string and assigns it to the Unit field.
func (o *MetricSeries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAndAggregations Object for a single metric's actively queried tags and aggregations.
type MetricSuggestedTagsAndAggregations struct {
// Object containing the definition of a metric's actively queried tags and aggregations.
Attributes *MetricSuggestedTagsAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric actively queried configuration resource type.
Type *MetricActiveConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAndAggregations() *MetricSuggestedTagsAndAggregations
NewMetricSuggestedTagsAndAggregations instantiates a new MetricSuggestedTagsAndAggregations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAndAggregationsWithDefaults() *MetricSuggestedTagsAndAggregations
NewMetricSuggestedTagsAndAggregationsWithDefaults instantiates a new MetricSuggestedTagsAndAggregations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAndAggregations) GetAttributes() MetricSuggestedTagsAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetAttributesOk() (*MetricSuggestedTagsAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) GetType() MetricActiveConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregations) GetTypeOk() (*MetricActiveConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregations) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAndAggregations) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAndAggregations) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricSuggestedTagsAndAggregations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAndAggregations) SetAttributes(v MetricSuggestedTagsAttributes)
SetAttributes gets a reference to the given MetricSuggestedTagsAttributes and assigns it to the Attributes field.
func (o *MetricSuggestedTagsAndAggregations) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricSuggestedTagsAndAggregations) SetType(v MetricActiveConfigurationType)
SetType gets a reference to the given MetricActiveConfigurationType and assigns it to the Type field.
func (o *MetricSuggestedTagsAndAggregations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAndAggregationsResponse Response object that includes a single metric's actively queried tags and aggregations.
type MetricSuggestedTagsAndAggregationsResponse struct {
// Object for a single metric's actively queried tags and aggregations.
Data *MetricSuggestedTagsAndAggregations `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAndAggregationsResponse() *MetricSuggestedTagsAndAggregationsResponse
NewMetricSuggestedTagsAndAggregationsResponse instantiates a new MetricSuggestedTagsAndAggregationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAndAggregationsResponseWithDefaults() *MetricSuggestedTagsAndAggregationsResponse
NewMetricSuggestedTagsAndAggregationsResponseWithDefaults instantiates a new MetricSuggestedTagsAndAggregationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAndAggregationsResponse) GetData() MetricSuggestedTagsAndAggregations
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAndAggregationsResponse) GetDataOk() (*MetricSuggestedTagsAndAggregations, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAndAggregationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricSuggestedTagsAndAggregationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAndAggregationsResponse) SetData(v MetricSuggestedTagsAndAggregations)
SetData gets a reference to the given MetricSuggestedTagsAndAggregations and assigns it to the Data field.
func (o *MetricSuggestedTagsAndAggregationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricSuggestedTagsAttributes Object containing the definition of a metric's actively queried tags and aggregations.
type MetricSuggestedTagsAttributes struct {
// List of aggregation combinations that have been actively queried.
ActiveAggregations []MetricCustomAggregation `json:"active_aggregations,omitempty"`
// List of tag keys that have been actively queried.
ActiveTags []string `json:"active_tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricSuggestedTagsAttributes() *MetricSuggestedTagsAttributes
NewMetricSuggestedTagsAttributes instantiates a new MetricSuggestedTagsAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricSuggestedTagsAttributesWithDefaults() *MetricSuggestedTagsAttributes
NewMetricSuggestedTagsAttributesWithDefaults instantiates a new MetricSuggestedTagsAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricSuggestedTagsAttributes) GetActiveAggregations() []MetricCustomAggregation
GetActiveAggregations returns the ActiveAggregations field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAttributes) GetActiveAggregationsOk() (*[]MetricCustomAggregation, bool)
GetActiveAggregationsOk returns a tuple with the ActiveAggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAttributes) GetActiveTags() []string
GetActiveTags returns the ActiveTags field value if set, zero value otherwise.
func (o *MetricSuggestedTagsAttributes) GetActiveTagsOk() (*[]string, bool)
GetActiveTagsOk returns a tuple with the ActiveTags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricSuggestedTagsAttributes) HasActiveAggregations() bool
HasActiveAggregations returns a boolean if a field has been set.
func (o *MetricSuggestedTagsAttributes) HasActiveTags() bool
HasActiveTags returns a boolean if a field has been set.
func (o MetricSuggestedTagsAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricSuggestedTagsAttributes) SetActiveAggregations(v []MetricCustomAggregation)
SetActiveAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the ActiveAggregations field.
func (o *MetricSuggestedTagsAttributes) SetActiveTags(v []string)
SetActiveTags gets a reference to the given []string and assigns it to the ActiveTags field.
func (o *MetricSuggestedTagsAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfiguration Object for a single metric tag configuration.
type MetricTagConfiguration struct {
// Object containing the definition of a metric tag configuration attributes.
Attributes *MetricTagConfigurationAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id *string `json:"id,omitempty"`
// The metric tag configuration resource type.
Type *MetricTagConfigurationType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfiguration() *MetricTagConfiguration
NewMetricTagConfiguration instantiates a new MetricTagConfiguration object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationWithDefaults() *MetricTagConfiguration
NewMetricTagConfigurationWithDefaults instantiates a new MetricTagConfiguration object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfiguration) GetAttributes() MetricTagConfigurationAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetAttributesOk() (*MetricTagConfigurationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) GetType() MetricTagConfigurationType
GetType returns the Type field value if set, zero value otherwise.
func (o *MetricTagConfiguration) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfiguration) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *MetricTagConfiguration) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MetricTagConfiguration) HasType() bool
HasType returns a boolean if a field has been set.
func (o MetricTagConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfiguration) SetAttributes(v MetricTagConfigurationAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationAttributes and assigns it to the Attributes field.
func (o *MetricTagConfiguration) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *MetricTagConfiguration) SetType(v MetricTagConfigurationType)
SetType gets a reference to the given MetricTagConfigurationType and assigns it to the Type field.
func (o *MetricTagConfiguration) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationAttributes Object containing the definition of a metric tag configuration attributes.
type MetricTagConfigurationAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Timestamp when the tag configuration was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Toggle to turn on/off percentile aggregations for distribution metrics.
// Only present when the `metric_type` is `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The metric's type.
MetricType *MetricTagConfigurationMetricTypes `json:"metric_type,omitempty"`
// Timestamp when the tag configuration was last modified.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// List of tag keys on which to group.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationAttributes() *MetricTagConfigurationAttributes
NewMetricTagConfigurationAttributes instantiates a new MetricTagConfigurationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationAttributesWithDefaults() *MetricTagConfigurationAttributes
NewMetricTagConfigurationAttributesWithDefaults instantiates a new MetricTagConfigurationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetMetricType() MetricTagConfigurationMetricTypes
GetMetricType returns the MetricType field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetMetricTypeOk() (*MetricTagConfigurationMetricTypes, bool)
GetMetricTypeOk returns a tuple with the MetricType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricTagConfigurationAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasMetricType() bool
HasMetricType returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *MetricTagConfigurationAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricTagConfigurationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *MetricTagConfigurationAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationAttributes) SetMetricType(v MetricTagConfigurationMetricTypes)
SetMetricType gets a reference to the given MetricTagConfigurationMetricTypes and assigns it to the MetricType field.
func (o *MetricTagConfigurationAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *MetricTagConfigurationAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricTagConfigurationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateAttributes Object containing the definition of a metric tag configuration to be created.
type MetricTagConfigurationCreateAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Toggle to include/exclude percentiles for a distribution metric.
// Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// The metric's type.
MetricType MetricTagConfigurationMetricTypes `json:"metric_type"`
// A list of tag keys that will be queryable for your metric.
Tags []string `json:"tags"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateAttributes(metricType MetricTagConfigurationMetricTypes, tags []string) *MetricTagConfigurationCreateAttributes
NewMetricTagConfigurationCreateAttributes instantiates a new MetricTagConfigurationCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateAttributesWithDefaults() *MetricTagConfigurationCreateAttributes
NewMetricTagConfigurationCreateAttributesWithDefaults instantiates a new MetricTagConfigurationCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetMetricType() MetricTagConfigurationMetricTypes
GetMetricType returns the MetricType field value.
func (o *MetricTagConfigurationCreateAttributes) GetMetricTypeOk() (*MetricTagConfigurationMetricTypes, bool)
GetMetricTypeOk returns a tuple with the MetricType field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) GetTags() []string
GetTags returns the Tags field value.
func (o *MetricTagConfigurationCreateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationCreateAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o MetricTagConfigurationCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationCreateAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationCreateAttributes) SetMetricType(v MetricTagConfigurationMetricTypes)
SetMetricType sets field value.
func (o *MetricTagConfigurationCreateAttributes) SetTags(v []string)
SetTags sets field value.
func (o *MetricTagConfigurationCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateData Object for a single metric to be configure tags on.
type MetricTagConfigurationCreateData struct {
// Object containing the definition of a metric tag configuration to be created.
Attributes *MetricTagConfigurationCreateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id string `json:"id"`
// The metric tag configuration resource type.
Type MetricTagConfigurationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateData(id string, typeVar MetricTagConfigurationType) *MetricTagConfigurationCreateData
NewMetricTagConfigurationCreateData instantiates a new MetricTagConfigurationCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateDataWithDefaults() *MetricTagConfigurationCreateData
NewMetricTagConfigurationCreateDataWithDefaults instantiates a new MetricTagConfigurationCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateData) GetAttributes() MetricTagConfigurationCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfigurationCreateData) GetAttributesOk() (*MetricTagConfigurationCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) GetId() string
GetId returns the Id field value.
func (o *MetricTagConfigurationCreateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) GetType() MetricTagConfigurationType
GetType returns the Type field value.
func (o *MetricTagConfigurationCreateData) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationCreateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricTagConfigurationCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateData) SetAttributes(v MetricTagConfigurationCreateAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationCreateAttributes and assigns it to the Attributes field.
func (o *MetricTagConfigurationCreateData) SetId(v string)
SetId sets field value.
func (o *MetricTagConfigurationCreateData) SetType(v MetricTagConfigurationType)
SetType sets field value.
func (o *MetricTagConfigurationCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationCreateRequest Request object that includes the metric that you would like to configure tags for.
type MetricTagConfigurationCreateRequest struct {
// Object for a single metric to be configure tags on.
Data MetricTagConfigurationCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationCreateRequest(data MetricTagConfigurationCreateData) *MetricTagConfigurationCreateRequest
NewMetricTagConfigurationCreateRequest instantiates a new MetricTagConfigurationCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationCreateRequestWithDefaults() *MetricTagConfigurationCreateRequest
NewMetricTagConfigurationCreateRequestWithDefaults instantiates a new MetricTagConfigurationCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationCreateRequest) GetData() MetricTagConfigurationCreateData
GetData returns the Data field value.
func (o *MetricTagConfigurationCreateRequest) GetDataOk() (*MetricTagConfigurationCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricTagConfigurationCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationCreateRequest) SetData(v MetricTagConfigurationCreateData)
SetData sets field value.
func (o *MetricTagConfigurationCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationMetricTypes The metric's type.
type MetricTagConfigurationMetricTypes string
List of MetricTagConfigurationMetricTypes.
const (
METRICTAGCONFIGURATIONMETRICTYPES_GAUGE MetricTagConfigurationMetricTypes = "gauge"
METRICTAGCONFIGURATIONMETRICTYPES_COUNT MetricTagConfigurationMetricTypes = "count"
METRICTAGCONFIGURATIONMETRICTYPES_RATE MetricTagConfigurationMetricTypes = "rate"
METRICTAGCONFIGURATIONMETRICTYPES_DISTRIBUTION MetricTagConfigurationMetricTypes = "distribution"
)
func NewMetricTagConfigurationMetricTypesFromValue(v string) (*MetricTagConfigurationMetricTypes, error)
NewMetricTagConfigurationMetricTypesFromValue returns a pointer to a valid MetricTagConfigurationMetricTypes for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricTagConfigurationMetricTypes) GetAllowedValues() []MetricTagConfigurationMetricTypes
GetAllowedValues reeturns the list of possible values.
func (v MetricTagConfigurationMetricTypes) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricTagConfigurationMetricTypes) Ptr() *MetricTagConfigurationMetricTypes
Ptr returns reference to MetricTagConfigurationMetricTypes value.
func (v *MetricTagConfigurationMetricTypes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationResponse Response object which includes a single metric's tag configuration.
type MetricTagConfigurationResponse struct {
// Object for a single metric tag configuration.
Data *MetricTagConfiguration `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationResponse() *MetricTagConfigurationResponse
NewMetricTagConfigurationResponse instantiates a new MetricTagConfigurationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationResponseWithDefaults() *MetricTagConfigurationResponse
NewMetricTagConfigurationResponseWithDefaults instantiates a new MetricTagConfigurationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationResponse) GetData() MetricTagConfiguration
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricTagConfigurationResponse) GetDataOk() (*MetricTagConfiguration, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricTagConfigurationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationResponse) SetData(v MetricTagConfiguration)
SetData gets a reference to the given MetricTagConfiguration and assigns it to the Data field.
func (o *MetricTagConfigurationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationType The metric tag configuration resource type.
type MetricTagConfigurationType string
List of MetricTagConfigurationType.
const (
METRICTAGCONFIGURATIONTYPE_MANAGE_TAGS MetricTagConfigurationType = "manage_tags"
)
func NewMetricTagConfigurationTypeFromValue(v string) (*MetricTagConfigurationType, error)
NewMetricTagConfigurationTypeFromValue returns a pointer to a valid MetricTagConfigurationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricTagConfigurationType) GetAllowedValues() []MetricTagConfigurationType
GetAllowedValues reeturns the list of possible values.
func (v MetricTagConfigurationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricTagConfigurationType) Ptr() *MetricTagConfigurationType
Ptr returns reference to MetricTagConfigurationType value.
func (v *MetricTagConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateAttributes Object containing the definition of a metric tag configuration to be updated.
type MetricTagConfigurationUpdateAttributes struct {
// A list of queryable aggregation combinations for a count, rate, or gauge metric.
// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
// Gauge metrics require the (time: avg, space: avg) aggregation.
// Additional time & space combinations are also available:
//
// - time: avg, space: avg
// - time: avg, space: max
// - time: avg, space: min
// - time: avg, space: sum
// - time: count, space: sum
// - time: max, space: max
// - time: min, space: min
// - time: sum, space: avg
// - time: sum, space: sum
//
// Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
Aggregations []MetricCustomAggregation `json:"aggregations,omitempty"`
// Toggle to include/exclude percentiles for a distribution metric.
// Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
IncludePercentiles *bool `json:"include_percentiles,omitempty"`
// A list of tag keys that will be queryable for your metric.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateAttributes() *MetricTagConfigurationUpdateAttributes
NewMetricTagConfigurationUpdateAttributes instantiates a new MetricTagConfigurationUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateAttributesWithDefaults() *MetricTagConfigurationUpdateAttributes
NewMetricTagConfigurationUpdateAttributesWithDefaults instantiates a new MetricTagConfigurationUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateAttributes) GetAggregations() []MetricCustomAggregation
GetAggregations returns the Aggregations field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetAggregationsOk() (*[]MetricCustomAggregation, bool)
GetAggregationsOk returns a tuple with the Aggregations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) GetIncludePercentiles() bool
GetIncludePercentiles returns the IncludePercentiles field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetIncludePercentilesOk() (*bool, bool)
GetIncludePercentilesOk returns a tuple with the IncludePercentiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasAggregations() bool
HasAggregations returns a boolean if a field has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasIncludePercentiles() bool
HasIncludePercentiles returns a boolean if a field has been set.
func (o *MetricTagConfigurationUpdateAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o MetricTagConfigurationUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateAttributes) SetAggregations(v []MetricCustomAggregation)
SetAggregations gets a reference to the given []MetricCustomAggregation and assigns it to the Aggregations field.
func (o *MetricTagConfigurationUpdateAttributes) SetIncludePercentiles(v bool)
SetIncludePercentiles gets a reference to the given bool and assigns it to the IncludePercentiles field.
func (o *MetricTagConfigurationUpdateAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MetricTagConfigurationUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateData Object for a single tag configuration to be edited.
type MetricTagConfigurationUpdateData struct {
// Object containing the definition of a metric tag configuration to be updated.
Attributes *MetricTagConfigurationUpdateAttributes `json:"attributes,omitempty"`
// The metric name for this resource.
Id string `json:"id"`
// The metric tag configuration resource type.
Type MetricTagConfigurationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateData(id string, typeVar MetricTagConfigurationType) *MetricTagConfigurationUpdateData
NewMetricTagConfigurationUpdateData instantiates a new MetricTagConfigurationUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateDataWithDefaults() *MetricTagConfigurationUpdateData
NewMetricTagConfigurationUpdateDataWithDefaults instantiates a new MetricTagConfigurationUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateData) GetAttributes() MetricTagConfigurationUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *MetricTagConfigurationUpdateData) GetAttributesOk() (*MetricTagConfigurationUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) GetId() string
GetId returns the Id field value.
func (o *MetricTagConfigurationUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) GetType() MetricTagConfigurationType
GetType returns the Type field value.
func (o *MetricTagConfigurationUpdateData) GetTypeOk() (*MetricTagConfigurationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *MetricTagConfigurationUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o MetricTagConfigurationUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateData) SetAttributes(v MetricTagConfigurationUpdateAttributes)
SetAttributes gets a reference to the given MetricTagConfigurationUpdateAttributes and assigns it to the Attributes field.
func (o *MetricTagConfigurationUpdateData) SetId(v string)
SetId sets field value.
func (o *MetricTagConfigurationUpdateData) SetType(v MetricTagConfigurationType)
SetType sets field value.
func (o *MetricTagConfigurationUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricTagConfigurationUpdateRequest Request object that includes the metric that you would like to edit the tag configuration on.
type MetricTagConfigurationUpdateRequest struct {
// Object for a single tag configuration to be edited.
Data MetricTagConfigurationUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricTagConfigurationUpdateRequest(data MetricTagConfigurationUpdateData) *MetricTagConfigurationUpdateRequest
NewMetricTagConfigurationUpdateRequest instantiates a new MetricTagConfigurationUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricTagConfigurationUpdateRequestWithDefaults() *MetricTagConfigurationUpdateRequest
NewMetricTagConfigurationUpdateRequestWithDefaults instantiates a new MetricTagConfigurationUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricTagConfigurationUpdateRequest) GetData() MetricTagConfigurationUpdateData
GetData returns the Data field value.
func (o *MetricTagConfigurationUpdateRequest) GetDataOk() (*MetricTagConfigurationUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o MetricTagConfigurationUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricTagConfigurationUpdateRequest) SetData(v MetricTagConfigurationUpdateData)
SetData sets field value.
func (o *MetricTagConfigurationUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricType The metric resource type.
type MetricType string
List of MetricType.
const (
METRICTYPE_METRICS MetricType = "metrics"
)
func NewMetricTypeFromValue(v string) (*MetricType, error)
NewMetricTypeFromValue returns a pointer to a valid MetricType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *MetricType) GetAllowedValues() []MetricType
GetAllowedValues reeturns the list of possible values.
func (v MetricType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v MetricType) Ptr() *MetricType
Ptr returns reference to MetricType value.
func (v *MetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
MetricVolumes - Possible response objects for a metric's volume.
type MetricVolumes struct {
MetricDistinctVolume *MetricDistinctVolume
MetricIngestedIndexedVolume *MetricIngestedIndexedVolume
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MetricDistinctVolumeAsMetricVolumes(v *MetricDistinctVolume) MetricVolumes
MetricDistinctVolumeAsMetricVolumes is a convenience function that returns MetricDistinctVolume wrapped in MetricVolumes.
func MetricIngestedIndexedVolumeAsMetricVolumes(v *MetricIngestedIndexedVolume) MetricVolumes
MetricIngestedIndexedVolumeAsMetricVolumes is a convenience function that returns MetricIngestedIndexedVolume wrapped in MetricVolumes.
func (obj *MetricVolumes) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MetricVolumes) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MetricVolumes) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MetricVolumesResponse Response object which includes a single metric's volume.
type MetricVolumesResponse struct {
// Possible response objects for a metric's volume.
Data *MetricVolumes `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricVolumesResponse() *MetricVolumesResponse
NewMetricVolumesResponse instantiates a new MetricVolumesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricVolumesResponseWithDefaults() *MetricVolumesResponse
NewMetricVolumesResponseWithDefaults instantiates a new MetricVolumesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricVolumesResponse) GetData() MetricVolumes
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricVolumesResponse) GetDataOk() (*MetricVolumes, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricVolumesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricVolumesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricVolumesResponse) SetData(v MetricVolumes)
SetData gets a reference to the given MetricVolumes and assigns it to the Data field.
func (o *MetricVolumesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricsAndMetricTagConfigurations - Object for a metrics and metric tag configurations.
type MetricsAndMetricTagConfigurations struct {
Metric *Metric
MetricTagConfiguration *MetricTagConfiguration
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func MetricAsMetricsAndMetricTagConfigurations(v *Metric) MetricsAndMetricTagConfigurations
MetricAsMetricsAndMetricTagConfigurations is a convenience function that returns Metric wrapped in MetricsAndMetricTagConfigurations.
func MetricTagConfigurationAsMetricsAndMetricTagConfigurations(v *MetricTagConfiguration) MetricsAndMetricTagConfigurations
MetricTagConfigurationAsMetricsAndMetricTagConfigurations is a convenience function that returns MetricTagConfiguration wrapped in MetricsAndMetricTagConfigurations.
func (obj *MetricsAndMetricTagConfigurations) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj MetricsAndMetricTagConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *MetricsAndMetricTagConfigurations) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
MetricsAndMetricTagConfigurationsResponse Response object that includes metrics and metric tag configurations.
type MetricsAndMetricTagConfigurationsResponse struct {
// Array of metrics and metric tag configurations.
Data []MetricsAndMetricTagConfigurations `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMetricsAndMetricTagConfigurationsResponse() *MetricsAndMetricTagConfigurationsResponse
NewMetricsAndMetricTagConfigurationsResponse instantiates a new MetricsAndMetricTagConfigurationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMetricsAndMetricTagConfigurationsResponseWithDefaults() *MetricsAndMetricTagConfigurationsResponse
NewMetricsAndMetricTagConfigurationsResponseWithDefaults instantiates a new MetricsAndMetricTagConfigurationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MetricsAndMetricTagConfigurationsResponse) GetData() []MetricsAndMetricTagConfigurations
GetData returns the Data field value if set, zero value otherwise.
func (o *MetricsAndMetricTagConfigurationsResponse) GetDataOk() (*[]MetricsAndMetricTagConfigurations, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MetricsAndMetricTagConfigurationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o MetricsAndMetricTagConfigurationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MetricsAndMetricTagConfigurationsResponse) SetData(v []MetricsAndMetricTagConfigurations)
SetData gets a reference to the given []MetricsAndMetricTagConfigurations and assigns it to the Data field.
func (o *MetricsAndMetricTagConfigurationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
MetricsApi service type
type MetricsApi datadog.Service
func NewMetricsApi(client *datadog.APIClient) *MetricsApi
NewMetricsApi Returns NewMetricsApi.
func (a *MetricsApi) CreateBulkTagsMetricsConfiguration(ctx _context.Context, body MetricBulkTagConfigCreateRequest) (MetricBulkTagConfigResponse, *_nethttp.Response, error)
CreateBulkTagsMetricsConfiguration Configure tags for multiple metrics. Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not expect deterministic ordering of concurrent calls. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) CreateTagConfiguration(ctx _context.Context, metricName string, body MetricTagConfigurationCreateRequest) (MetricTagConfigurationResponse, *_nethttp.Response, error)
CreateTagConfiguration Create a tag configuration. Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric or configure custom aggregations on any count, rate, or gauge metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) DeleteBulkTagsMetricsConfiguration(ctx _context.Context, body MetricBulkTagConfigDeleteRequest) (MetricBulkTagConfigResponse, *_nethttp.Response, error)
DeleteBulkTagsMetricsConfiguration Configure tags for multiple metrics. Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. Metrics are selected by passing a metric name prefix. Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) DeleteTagConfiguration(ctx _context.Context, metricName string) (*_nethttp.Response, error)
DeleteTagConfiguration Delete a tag configuration. Deletes a metric's tag configuration. Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
func (a *MetricsApi) EstimateMetricsOutputSeries(ctx _context.Context, metricName string, o ...EstimateMetricsOutputSeriesOptionalParameters) (MetricEstimateResponse, *_nethttp.Response, error)
EstimateMetricsOutputSeries Tag Configuration Cardinality Estimator. Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
func (a *MetricsApi) ListActiveMetricConfigurations(ctx _context.Context, metricName string, o ...ListActiveMetricConfigurationsOptionalParameters) (MetricSuggestedTagsAndAggregationsResponse, *_nethttp.Response, error)
ListActiveMetricConfigurations List active tags and aggregations. List tags and aggregations that are actively queried on dashboards and monitors for a given metric name.
func (a *MetricsApi) ListTagConfigurationByName(ctx _context.Context, metricName string) (MetricTagConfigurationResponse, *_nethttp.Response, error)
ListTagConfigurationByName List tag configuration by name. Returns the tag configuration for the given metric name.
func (a *MetricsApi) ListTagConfigurations(ctx _context.Context, o ...ListTagConfigurationsOptionalParameters) (MetricsAndMetricTagConfigurationsResponse, *_nethttp.Response, error)
ListTagConfigurations Get a list of metrics. Returns all metrics that can be configured in the Metrics Summary page or with Metrics without Limits™ (matching additional filters if specified).
func (a *MetricsApi) ListTagsByMetricName(ctx _context.Context, metricName string) (MetricAllTagsResponse, *_nethttp.Response, error)
ListTagsByMetricName List tags by metric name. View indexed tag key-value pairs for a given metric name.
func (a *MetricsApi) ListVolumesByMetricName(ctx _context.Context, metricName string) (MetricVolumesResponse, *_nethttp.Response, error)
ListVolumesByMetricName List distinct metric volumes by metric name. View distinct metrics volumes for the given metric name.
Custom metrics generated in-app from other products will return `null` for ingested volumes.
func (a *MetricsApi) SubmitMetrics(ctx _context.Context, body MetricPayload, o ...SubmitMetricsOptionalParameters) (IntakePayloadAccepted, *_nethttp.Response, error)
SubmitMetrics Submit metrics. The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 500 kilobytes (512000 bytes). Compressed payloads must have a decompressed size of less than 5 megabytes (5242880 bytes).
If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect:
- 64 bits for the timestamp - 64 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes.
Host name is one of the resources in the Resources field.
func (a *MetricsApi) UpdateTagConfiguration(ctx _context.Context, metricName string, body MetricTagConfigurationUpdateRequest) (MetricTagConfigurationResponse, *_nethttp.Response, error)
UpdateTagConfiguration Update a tag configuration. Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations of a count, rate, or gauge metric. Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
MonitorType Attributes from the monitor that triggered the event.
type MonitorType struct {
// The POSIX timestamp of the monitor's creation in nanoseconds.
CreatedAt *int64 `json:"created_at,omitempty"`
// Monitor group status used when there is no `result_groups`.
GroupStatus *int32 `json:"group_status,omitempty"`
// Groups to which the monitor belongs.
Groups []string `json:"groups,omitempty"`
// The monitor ID.
Id *int64 `json:"id,omitempty"`
// The monitor message.
Message *string `json:"message,omitempty"`
// The monitor's last-modified timestamp.
Modified *int64 `json:"modified,omitempty"`
// The monitor name.
Name *string `json:"name,omitempty"`
// The query that triggers the alert.
Query *string `json:"query,omitempty"`
// A list of tags attached to the monitor.
Tags []string `json:"tags,omitempty"`
// The templated name of the monitor before resolving any template variables.
TemplatedName *string `json:"templated_name,omitempty"`
// The monitor type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewMonitorType() *MonitorType
NewMonitorType instantiates a new MonitorType object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewMonitorTypeWithDefaults() *MonitorType
NewMonitorTypeWithDefaults instantiates a new MonitorType object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *MonitorType) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *MonitorType) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetGroupStatus() int32
GetGroupStatus returns the GroupStatus field value if set, zero value otherwise.
func (o *MonitorType) GetGroupStatusOk() (*int32, bool)
GetGroupStatusOk returns a tuple with the GroupStatus field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetGroups() []string
GetGroups returns the Groups field value if set, zero value otherwise.
func (o *MonitorType) GetGroupsOk() (*[]string, bool)
GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *MonitorType) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *MonitorType) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetModified() int64
GetModified returns the Modified field value if set, zero value otherwise.
func (o *MonitorType) GetModifiedOk() (*int64, bool)
GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *MonitorType) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *MonitorType) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *MonitorType) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetTemplatedName() string
GetTemplatedName returns the TemplatedName field value if set, zero value otherwise.
func (o *MonitorType) GetTemplatedNameOk() (*string, bool)
GetTemplatedNameOk returns a tuple with the TemplatedName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *MonitorType) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *MonitorType) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *MonitorType) HasGroupStatus() bool
HasGroupStatus returns a boolean if a field has been set.
func (o *MonitorType) HasGroups() bool
HasGroups returns a boolean if a field has been set.
func (o *MonitorType) HasId() bool
HasId returns a boolean if a field has been set.
func (o *MonitorType) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *MonitorType) HasModified() bool
HasModified returns a boolean if a field has been set.
func (o *MonitorType) HasName() bool
HasName returns a boolean if a field has been set.
func (o *MonitorType) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *MonitorType) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *MonitorType) HasTemplatedName() bool
HasTemplatedName returns a boolean if a field has been set.
func (o *MonitorType) HasType() bool
HasType returns a boolean if a field has been set.
func (o MonitorType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *MonitorType) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *MonitorType) SetGroupStatus(v int32)
SetGroupStatus gets a reference to the given int32 and assigns it to the GroupStatus field.
func (o *MonitorType) SetGroups(v []string)
SetGroups gets a reference to the given []string and assigns it to the Groups field.
func (o *MonitorType) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *MonitorType) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *MonitorType) SetModified(v int64)
SetModified gets a reference to the given int64 and assigns it to the Modified field.
func (o *MonitorType) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *MonitorType) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *MonitorType) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *MonitorType) SetTemplatedName(v string)
SetTemplatedName gets a reference to the given string and assigns it to the TemplatedName field.
func (o *MonitorType) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *MonitorType) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableAPIKeyResponseIncludedItem handles when a null is used for APIKeyResponseIncludedItem.
type NullableAPIKeyResponseIncludedItem struct {
// contains filtered or unexported fields
}
func NewNullableAPIKeyResponseIncludedItem(val *APIKeyResponseIncludedItem) *NullableAPIKeyResponseIncludedItem
NewNullableAPIKeyResponseIncludedItem initializes the struct as if Set has been called.
func (v NullableAPIKeyResponseIncludedItem) Get() *APIKeyResponseIncludedItem
Get returns the associated value.
func (v NullableAPIKeyResponseIncludedItem) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAPIKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAPIKeyResponseIncludedItem) Set(val *APIKeyResponseIncludedItem)
Set changes the value and indicates it's been called.
func (v *NullableAPIKeyResponseIncludedItem) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAPIKeyResponseIncludedItem) Unset()
Unset sets the value to nil and resets the set flag/
NullableAPIKeysSort handles when a null is used for APIKeysSort.
type NullableAPIKeysSort struct {
// contains filtered or unexported fields
}
func NewNullableAPIKeysSort(val *APIKeysSort) *NullableAPIKeysSort
NewNullableAPIKeysSort initializes the struct as if Set has been called.
func (v NullableAPIKeysSort) Get() *APIKeysSort
Get returns the associated value.
func (v NullableAPIKeysSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAPIKeysSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAPIKeysSort) Set(val *APIKeysSort)
Set changes the value and indicates it's been called.
func (v *NullableAPIKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAPIKeysSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableAPIKeysType handles when a null is used for APIKeysType.
type NullableAPIKeysType struct {
// contains filtered or unexported fields
}
func NewNullableAPIKeysType(val *APIKeysType) *NullableAPIKeysType
NewNullableAPIKeysType initializes the struct as if Set has been called.
func (v NullableAPIKeysType) Get() *APIKeysType
Get returns the associated value.
func (v NullableAPIKeysType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAPIKeysType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAPIKeysType) Set(val *APIKeysType)
Set changes the value and indicates it's been called.
func (v *NullableAPIKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAPIKeysType) Unset()
Unset sets the value to nil and resets the set flag.
NullableApplicationKeyResponseIncludedItem handles when a null is used for ApplicationKeyResponseIncludedItem.
type NullableApplicationKeyResponseIncludedItem struct {
// contains filtered or unexported fields
}
func NewNullableApplicationKeyResponseIncludedItem(val *ApplicationKeyResponseIncludedItem) *NullableApplicationKeyResponseIncludedItem
NewNullableApplicationKeyResponseIncludedItem initializes the struct as if Set has been called.
func (v NullableApplicationKeyResponseIncludedItem) Get() *ApplicationKeyResponseIncludedItem
Get returns the associated value.
func (v NullableApplicationKeyResponseIncludedItem) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableApplicationKeyResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableApplicationKeyResponseIncludedItem) Set(val *ApplicationKeyResponseIncludedItem)
Set changes the value and indicates it's been called.
func (v *NullableApplicationKeyResponseIncludedItem) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableApplicationKeyResponseIncludedItem) Unset()
Unset sets the value to nil and resets the set flag/
NullableApplicationKeysSort handles when a null is used for ApplicationKeysSort.
type NullableApplicationKeysSort struct {
// contains filtered or unexported fields
}
func NewNullableApplicationKeysSort(val *ApplicationKeysSort) *NullableApplicationKeysSort
NewNullableApplicationKeysSort initializes the struct as if Set has been called.
func (v NullableApplicationKeysSort) Get() *ApplicationKeysSort
Get returns the associated value.
func (v NullableApplicationKeysSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableApplicationKeysSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableApplicationKeysSort) Set(val *ApplicationKeysSort)
Set changes the value and indicates it's been called.
func (v *NullableApplicationKeysSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableApplicationKeysSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableApplicationKeysType handles when a null is used for ApplicationKeysType.
type NullableApplicationKeysType struct {
// contains filtered or unexported fields
}
func NewNullableApplicationKeysType(val *ApplicationKeysType) *NullableApplicationKeysType
NewNullableApplicationKeysType initializes the struct as if Set has been called.
func (v NullableApplicationKeysType) Get() *ApplicationKeysType
Get returns the associated value.
func (v NullableApplicationKeysType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableApplicationKeysType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableApplicationKeysType) Set(val *ApplicationKeysType)
Set changes the value and indicates it's been called.
func (v *NullableApplicationKeysType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableApplicationKeysType) Unset()
Unset sets the value to nil and resets the set flag.
NullableAuditLogsEventType handles when a null is used for AuditLogsEventType.
type NullableAuditLogsEventType struct {
// contains filtered or unexported fields
}
func NewNullableAuditLogsEventType(val *AuditLogsEventType) *NullableAuditLogsEventType
NewNullableAuditLogsEventType initializes the struct as if Set has been called.
func (v NullableAuditLogsEventType) Get() *AuditLogsEventType
Get returns the associated value.
func (v NullableAuditLogsEventType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuditLogsEventType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuditLogsEventType) Set(val *AuditLogsEventType)
Set changes the value and indicates it's been called.
func (v *NullableAuditLogsEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuditLogsEventType) Unset()
Unset sets the value to nil and resets the set flag.
NullableAuditLogsResponseStatus handles when a null is used for AuditLogsResponseStatus.
type NullableAuditLogsResponseStatus struct {
// contains filtered or unexported fields
}
func NewNullableAuditLogsResponseStatus(val *AuditLogsResponseStatus) *NullableAuditLogsResponseStatus
NewNullableAuditLogsResponseStatus initializes the struct as if Set has been called.
func (v NullableAuditLogsResponseStatus) Get() *AuditLogsResponseStatus
Get returns the associated value.
func (v NullableAuditLogsResponseStatus) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuditLogsResponseStatus) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuditLogsResponseStatus) Set(val *AuditLogsResponseStatus)
Set changes the value and indicates it's been called.
func (v *NullableAuditLogsResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuditLogsResponseStatus) Unset()
Unset sets the value to nil and resets the set flag.
NullableAuditLogsSort handles when a null is used for AuditLogsSort.
type NullableAuditLogsSort struct {
// contains filtered or unexported fields
}
func NewNullableAuditLogsSort(val *AuditLogsSort) *NullableAuditLogsSort
NewNullableAuditLogsSort initializes the struct as if Set has been called.
func (v NullableAuditLogsSort) Get() *AuditLogsSort
Get returns the associated value.
func (v NullableAuditLogsSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuditLogsSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuditLogsSort) Set(val *AuditLogsSort)
Set changes the value and indicates it's been called.
func (v *NullableAuditLogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuditLogsSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableAuthNMappingIncluded handles when a null is used for AuthNMappingIncluded.
type NullableAuthNMappingIncluded struct {
// contains filtered or unexported fields
}
func NewNullableAuthNMappingIncluded(val *AuthNMappingIncluded) *NullableAuthNMappingIncluded
NewNullableAuthNMappingIncluded initializes the struct as if Set has been called.
func (v NullableAuthNMappingIncluded) Get() *AuthNMappingIncluded
Get returns the associated value.
func (v NullableAuthNMappingIncluded) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuthNMappingIncluded) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuthNMappingIncluded) Set(val *AuthNMappingIncluded)
Set changes the value and indicates it's been called.
func (v *NullableAuthNMappingIncluded) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuthNMappingIncluded) Unset()
Unset sets the value to nil and resets the set flag/
NullableAuthNMappingsSort handles when a null is used for AuthNMappingsSort.
type NullableAuthNMappingsSort struct {
// contains filtered or unexported fields
}
func NewNullableAuthNMappingsSort(val *AuthNMappingsSort) *NullableAuthNMappingsSort
NewNullableAuthNMappingsSort initializes the struct as if Set has been called.
func (v NullableAuthNMappingsSort) Get() *AuthNMappingsSort
Get returns the associated value.
func (v NullableAuthNMappingsSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuthNMappingsSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuthNMappingsSort) Set(val *AuthNMappingsSort)
Set changes the value and indicates it's been called.
func (v *NullableAuthNMappingsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuthNMappingsSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableAuthNMappingsType handles when a null is used for AuthNMappingsType.
type NullableAuthNMappingsType struct {
// contains filtered or unexported fields
}
func NewNullableAuthNMappingsType(val *AuthNMappingsType) *NullableAuthNMappingsType
NewNullableAuthNMappingsType initializes the struct as if Set has been called.
func (v NullableAuthNMappingsType) Get() *AuthNMappingsType
Get returns the associated value.
func (v NullableAuthNMappingsType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableAuthNMappingsType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableAuthNMappingsType) Set(val *AuthNMappingsType)
Set changes the value and indicates it's been called.
func (v *NullableAuthNMappingsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableAuthNMappingsType) Unset()
Unset sets the value to nil and resets the set flag.
NullableCloudWorkloadSecurityAgentRuleType handles when a null is used for CloudWorkloadSecurityAgentRuleType.
type NullableCloudWorkloadSecurityAgentRuleType struct {
// contains filtered or unexported fields
}
func NewNullableCloudWorkloadSecurityAgentRuleType(val *CloudWorkloadSecurityAgentRuleType) *NullableCloudWorkloadSecurityAgentRuleType
NewNullableCloudWorkloadSecurityAgentRuleType initializes the struct as if Set has been called.
func (v NullableCloudWorkloadSecurityAgentRuleType) Get() *CloudWorkloadSecurityAgentRuleType
Get returns the associated value.
func (v NullableCloudWorkloadSecurityAgentRuleType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCloudWorkloadSecurityAgentRuleType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCloudWorkloadSecurityAgentRuleType) Set(val *CloudWorkloadSecurityAgentRuleType)
Set changes the value and indicates it's been called.
func (v *NullableCloudWorkloadSecurityAgentRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCloudWorkloadSecurityAgentRuleType) Unset()
Unset sets the value to nil and resets the set flag.
NullableConfluentAccountType handles when a null is used for ConfluentAccountType.
type NullableConfluentAccountType struct {
// contains filtered or unexported fields
}
func NewNullableConfluentAccountType(val *ConfluentAccountType) *NullableConfluentAccountType
NewNullableConfluentAccountType initializes the struct as if Set has been called.
func (v NullableConfluentAccountType) Get() *ConfluentAccountType
Get returns the associated value.
func (v NullableConfluentAccountType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableConfluentAccountType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableConfluentAccountType) Set(val *ConfluentAccountType)
Set changes the value and indicates it's been called.
func (v *NullableConfluentAccountType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableConfluentAccountType) Unset()
Unset sets the value to nil and resets the set flag.
NullableConfluentResourceType handles when a null is used for ConfluentResourceType.
type NullableConfluentResourceType struct {
// contains filtered or unexported fields
}
func NewNullableConfluentResourceType(val *ConfluentResourceType) *NullableConfluentResourceType
NewNullableConfluentResourceType initializes the struct as if Set has been called.
func (v NullableConfluentResourceType) Get() *ConfluentResourceType
Get returns the associated value.
func (v NullableConfluentResourceType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableConfluentResourceType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableConfluentResourceType) Set(val *ConfluentResourceType)
Set changes the value and indicates it's been called.
func (v *NullableConfluentResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableConfluentResourceType) Unset()
Unset sets the value to nil and resets the set flag.
NullableContentEncoding handles when a null is used for ContentEncoding.
type NullableContentEncoding struct {
// contains filtered or unexported fields
}
func NewNullableContentEncoding(val *ContentEncoding) *NullableContentEncoding
NewNullableContentEncoding initializes the struct as if Set has been called.
func (v NullableContentEncoding) Get() *ContentEncoding
Get returns the associated value.
func (v NullableContentEncoding) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableContentEncoding) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableContentEncoding) Set(val *ContentEncoding)
Set changes the value and indicates it's been called.
func (v *NullableContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableContentEncoding) Unset()
Unset sets the value to nil and resets the set flag.
NullableCostByOrgType handles when a null is used for CostByOrgType.
type NullableCostByOrgType struct {
// contains filtered or unexported fields
}
func NewNullableCostByOrgType(val *CostByOrgType) *NullableCostByOrgType
NewNullableCostByOrgType initializes the struct as if Set has been called.
func (v NullableCostByOrgType) Get() *CostByOrgType
Get returns the associated value.
func (v NullableCostByOrgType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableCostByOrgType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableCostByOrgType) Set(val *CostByOrgType)
Set changes the value and indicates it's been called.
func (v *NullableCostByOrgType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableCostByOrgType) Unset()
Unset sets the value to nil and resets the set flag.
NullableDashboardType handles when a null is used for DashboardType.
type NullableDashboardType struct {
// contains filtered or unexported fields
}
func NewNullableDashboardType(val *DashboardType) *NullableDashboardType
NewNullableDashboardType initializes the struct as if Set has been called.
func (v NullableDashboardType) Get() *DashboardType
Get returns the associated value.
func (v NullableDashboardType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableDashboardType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableDashboardType) Set(val *DashboardType)
Set changes the value and indicates it's been called.
func (v *NullableDashboardType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableDashboardType) Unset()
Unset sets the value to nil and resets the set flag.
NullableEventPriority handles when a null is used for EventPriority.
type NullableEventPriority struct {
// contains filtered or unexported fields
}
func NewNullableEventPriority(val *EventPriority) *NullableEventPriority
NewNullableEventPriority initializes the struct as if Set has been called.
func (v NullableEventPriority) Get() *EventPriority
Get returns the associated value.
func (v NullableEventPriority) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableEventPriority) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableEventPriority) Set(val *EventPriority)
Set changes the value and indicates it's been called.
func (v *NullableEventPriority) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableEventPriority) Unset()
Unset sets the value to nil and resets the set flag.
NullableEventStatusType handles when a null is used for EventStatusType.
type NullableEventStatusType struct {
// contains filtered or unexported fields
}
func NewNullableEventStatusType(val *EventStatusType) *NullableEventStatusType
NewNullableEventStatusType initializes the struct as if Set has been called.
func (v NullableEventStatusType) Get() *EventStatusType
Get returns the associated value.
func (v NullableEventStatusType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableEventStatusType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableEventStatusType) Set(val *EventStatusType)
Set changes the value and indicates it's been called.
func (v *NullableEventStatusType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableEventStatusType) Unset()
Unset sets the value to nil and resets the set flag.
NullableEventType handles when a null is used for EventType.
type NullableEventType struct {
// contains filtered or unexported fields
}
func NewNullableEventType(val *EventType) *NullableEventType
NewNullableEventType initializes the struct as if Set has been called.
func (v NullableEventType) Get() *EventType
Get returns the associated value.
func (v NullableEventType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableEventType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableEventType) Set(val *EventType)
Set changes the value and indicates it's been called.
func (v *NullableEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableEventType) Unset()
Unset sets the value to nil and resets the set flag.
NullableEventsSort handles when a null is used for EventsSort.
type NullableEventsSort struct {
// contains filtered or unexported fields
}
func NewNullableEventsSort(val *EventsSort) *NullableEventsSort
NewNullableEventsSort initializes the struct as if Set has been called.
func (v NullableEventsSort) Get() *EventsSort
Get returns the associated value.
func (v NullableEventsSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableEventsSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableEventsSort) Set(val *EventsSort)
Set changes the value and indicates it's been called.
func (v *NullableEventsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableEventsSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableHourlyUsageType handles when a null is used for HourlyUsageType.
type NullableHourlyUsageType struct {
// contains filtered or unexported fields
}
func NewNullableHourlyUsageType(val *HourlyUsageType) *NullableHourlyUsageType
NewNullableHourlyUsageType initializes the struct as if Set has been called.
func (v NullableHourlyUsageType) Get() *HourlyUsageType
Get returns the associated value.
func (v NullableHourlyUsageType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableHourlyUsageType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableHourlyUsageType) Set(val *HourlyUsageType)
Set changes the value and indicates it's been called.
func (v *NullableHourlyUsageType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableHourlyUsageType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentAttachmentType handles when a null is used for IncidentAttachmentAttachmentType.
type NullableIncidentAttachmentAttachmentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentAttachmentType(val *IncidentAttachmentAttachmentType) *NullableIncidentAttachmentAttachmentType
NewNullableIncidentAttachmentAttachmentType initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentAttachmentType) Get() *IncidentAttachmentAttachmentType
Get returns the associated value.
func (v NullableIncidentAttachmentAttachmentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentAttachmentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentAttachmentType) Set(val *IncidentAttachmentAttachmentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentAttachmentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentAttributes handles when a null is used for IncidentAttachmentAttributes.
type NullableIncidentAttachmentAttributes struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentAttributes(val *IncidentAttachmentAttributes) *NullableIncidentAttachmentAttributes
NewNullableIncidentAttachmentAttributes initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentAttributes) Get() *IncidentAttachmentAttributes
Get returns the associated value.
func (v NullableIncidentAttachmentAttributes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentAttributes) Set(val *IncidentAttachmentAttributes)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentAttributes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentAttributes) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentAttachmentLinkAttachmentType handles when a null is used for IncidentAttachmentLinkAttachmentType.
type NullableIncidentAttachmentLinkAttachmentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentLinkAttachmentType(val *IncidentAttachmentLinkAttachmentType) *NullableIncidentAttachmentLinkAttachmentType
NewNullableIncidentAttachmentLinkAttachmentType initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentLinkAttachmentType) Get() *IncidentAttachmentLinkAttachmentType
Get returns the associated value.
func (v NullableIncidentAttachmentLinkAttachmentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentLinkAttachmentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentLinkAttachmentType) Set(val *IncidentAttachmentLinkAttachmentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentLinkAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentLinkAttachmentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentPostmortemAttachmentType handles when a null is used for IncidentAttachmentPostmortemAttachmentType.
type NullableIncidentAttachmentPostmortemAttachmentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentPostmortemAttachmentType(val *IncidentAttachmentPostmortemAttachmentType) *NullableIncidentAttachmentPostmortemAttachmentType
NewNullableIncidentAttachmentPostmortemAttachmentType initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentPostmortemAttachmentType) Get() *IncidentAttachmentPostmortemAttachmentType
Get returns the associated value.
func (v NullableIncidentAttachmentPostmortemAttachmentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentPostmortemAttachmentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentPostmortemAttachmentType) Set(val *IncidentAttachmentPostmortemAttachmentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentPostmortemAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentPostmortemAttachmentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentRelatedObject handles when a null is used for IncidentAttachmentRelatedObject.
type NullableIncidentAttachmentRelatedObject struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentRelatedObject(val *IncidentAttachmentRelatedObject) *NullableIncidentAttachmentRelatedObject
NewNullableIncidentAttachmentRelatedObject initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentRelatedObject) Get() *IncidentAttachmentRelatedObject
Get returns the associated value.
func (v NullableIncidentAttachmentRelatedObject) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentRelatedObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentRelatedObject) Set(val *IncidentAttachmentRelatedObject)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentRelatedObject) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentType handles when a null is used for IncidentAttachmentType.
type NullableIncidentAttachmentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentType(val *IncidentAttachmentType) *NullableIncidentAttachmentType
NewNullableIncidentAttachmentType initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentType) Get() *IncidentAttachmentType
Get returns the associated value.
func (v NullableIncidentAttachmentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentType) Set(val *IncidentAttachmentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentAttachmentUpdateAttributes handles when a null is used for IncidentAttachmentUpdateAttributes.
type NullableIncidentAttachmentUpdateAttributes struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentUpdateAttributes(val *IncidentAttachmentUpdateAttributes) *NullableIncidentAttachmentUpdateAttributes
NewNullableIncidentAttachmentUpdateAttributes initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentUpdateAttributes) Get() *IncidentAttachmentUpdateAttributes
Get returns the associated value.
func (v NullableIncidentAttachmentUpdateAttributes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentUpdateAttributes) Set(val *IncidentAttachmentUpdateAttributes)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentUpdateAttributes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentUpdateAttributes) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentAttachmentsResponseIncludedItem handles when a null is used for IncidentAttachmentsResponseIncludedItem.
type NullableIncidentAttachmentsResponseIncludedItem struct {
// contains filtered or unexported fields
}
func NewNullableIncidentAttachmentsResponseIncludedItem(val *IncidentAttachmentsResponseIncludedItem) *NullableIncidentAttachmentsResponseIncludedItem
NewNullableIncidentAttachmentsResponseIncludedItem initializes the struct as if Set has been called.
func (v NullableIncidentAttachmentsResponseIncludedItem) Get() *IncidentAttachmentsResponseIncludedItem
Get returns the associated value.
func (v NullableIncidentAttachmentsResponseIncludedItem) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentAttachmentsResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentAttachmentsResponseIncludedItem) Set(val *IncidentAttachmentsResponseIncludedItem)
Set changes the value and indicates it's been called.
func (v *NullableIncidentAttachmentsResponseIncludedItem) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentAttachmentsResponseIncludedItem) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentFieldAttributes handles when a null is used for IncidentFieldAttributes.
type NullableIncidentFieldAttributes struct {
// contains filtered or unexported fields
}
func NewNullableIncidentFieldAttributes(val *IncidentFieldAttributes) *NullableIncidentFieldAttributes
NewNullableIncidentFieldAttributes initializes the struct as if Set has been called.
func (v NullableIncidentFieldAttributes) Get() *IncidentFieldAttributes
Get returns the associated value.
func (v NullableIncidentFieldAttributes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentFieldAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentFieldAttributes) Set(val *IncidentFieldAttributes)
Set changes the value and indicates it's been called.
func (v *NullableIncidentFieldAttributes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentFieldAttributes) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentFieldAttributesSingleValueType handles when a null is used for IncidentFieldAttributesSingleValueType.
type NullableIncidentFieldAttributesSingleValueType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentFieldAttributesSingleValueType(val *IncidentFieldAttributesSingleValueType) *NullableIncidentFieldAttributesSingleValueType
NewNullableIncidentFieldAttributesSingleValueType initializes the struct as if Set has been called.
func (v NullableIncidentFieldAttributesSingleValueType) Get() *IncidentFieldAttributesSingleValueType
Get returns the associated value.
func (v NullableIncidentFieldAttributesSingleValueType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentFieldAttributesSingleValueType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentFieldAttributesSingleValueType) Set(val *IncidentFieldAttributesSingleValueType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentFieldAttributesSingleValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentFieldAttributesSingleValueType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentFieldAttributesValueType handles when a null is used for IncidentFieldAttributesValueType.
type NullableIncidentFieldAttributesValueType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentFieldAttributesValueType(val *IncidentFieldAttributesValueType) *NullableIncidentFieldAttributesValueType
NewNullableIncidentFieldAttributesValueType initializes the struct as if Set has been called.
func (v NullableIncidentFieldAttributesValueType) Get() *IncidentFieldAttributesValueType
Get returns the associated value.
func (v NullableIncidentFieldAttributesValueType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentFieldAttributesValueType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentFieldAttributesValueType) Set(val *IncidentFieldAttributesValueType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentFieldAttributesValueType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentFieldAttributesValueType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentIntegrationMetadataType handles when a null is used for IncidentIntegrationMetadataType.
type NullableIncidentIntegrationMetadataType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentIntegrationMetadataType(val *IncidentIntegrationMetadataType) *NullableIncidentIntegrationMetadataType
NewNullableIncidentIntegrationMetadataType initializes the struct as if Set has been called.
func (v NullableIncidentIntegrationMetadataType) Get() *IncidentIntegrationMetadataType
Get returns the associated value.
func (v NullableIncidentIntegrationMetadataType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentIntegrationMetadataType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentIntegrationMetadataType) Set(val *IncidentIntegrationMetadataType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentIntegrationMetadataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentIntegrationMetadataType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentPostmortemType handles when a null is used for IncidentPostmortemType.
type NullableIncidentPostmortemType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentPostmortemType(val *IncidentPostmortemType) *NullableIncidentPostmortemType
NewNullableIncidentPostmortemType initializes the struct as if Set has been called.
func (v NullableIncidentPostmortemType) Get() *IncidentPostmortemType
Get returns the associated value.
func (v NullableIncidentPostmortemType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentPostmortemType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentPostmortemType) Set(val *IncidentPostmortemType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentPostmortemType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentPostmortemType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentRelatedObject handles when a null is used for IncidentRelatedObject.
type NullableIncidentRelatedObject struct {
// contains filtered or unexported fields
}
func NewNullableIncidentRelatedObject(val *IncidentRelatedObject) *NullableIncidentRelatedObject
NewNullableIncidentRelatedObject initializes the struct as if Set has been called.
func (v NullableIncidentRelatedObject) Get() *IncidentRelatedObject
Get returns the associated value.
func (v NullableIncidentRelatedObject) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentRelatedObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentRelatedObject) Set(val *IncidentRelatedObject)
Set changes the value and indicates it's been called.
func (v *NullableIncidentRelatedObject) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentRelatedObject) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentResponseIncludedItem handles when a null is used for IncidentResponseIncludedItem.
type NullableIncidentResponseIncludedItem struct {
// contains filtered or unexported fields
}
func NewNullableIncidentResponseIncludedItem(val *IncidentResponseIncludedItem) *NullableIncidentResponseIncludedItem
NewNullableIncidentResponseIncludedItem initializes the struct as if Set has been called.
func (v NullableIncidentResponseIncludedItem) Get() *IncidentResponseIncludedItem
Get returns the associated value.
func (v NullableIncidentResponseIncludedItem) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentResponseIncludedItem) Set(val *IncidentResponseIncludedItem)
Set changes the value and indicates it's been called.
func (v *NullableIncidentResponseIncludedItem) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentResponseIncludedItem) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentServiceIncludedItems handles when a null is used for IncidentServiceIncludedItems.
type NullableIncidentServiceIncludedItems struct {
// contains filtered or unexported fields
}
func NewNullableIncidentServiceIncludedItems(val *IncidentServiceIncludedItems) *NullableIncidentServiceIncludedItems
NewNullableIncidentServiceIncludedItems initializes the struct as if Set has been called.
func (v NullableIncidentServiceIncludedItems) Get() *IncidentServiceIncludedItems
Get returns the associated value.
func (v NullableIncidentServiceIncludedItems) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentServiceIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentServiceIncludedItems) Set(val *IncidentServiceIncludedItems)
Set changes the value and indicates it's been called.
func (v *NullableIncidentServiceIncludedItems) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentServiceIncludedItems) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentServiceType handles when a null is used for IncidentServiceType.
type NullableIncidentServiceType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentServiceType(val *IncidentServiceType) *NullableIncidentServiceType
NewNullableIncidentServiceType initializes the struct as if Set has been called.
func (v NullableIncidentServiceType) Get() *IncidentServiceType
Get returns the associated value.
func (v NullableIncidentServiceType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentServiceType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentServiceType) Set(val *IncidentServiceType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentServiceType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentTeamIncludedItems handles when a null is used for IncidentTeamIncludedItems.
type NullableIncidentTeamIncludedItems struct {
// contains filtered or unexported fields
}
func NewNullableIncidentTeamIncludedItems(val *IncidentTeamIncludedItems) *NullableIncidentTeamIncludedItems
NewNullableIncidentTeamIncludedItems initializes the struct as if Set has been called.
func (v NullableIncidentTeamIncludedItems) Get() *IncidentTeamIncludedItems
Get returns the associated value.
func (v NullableIncidentTeamIncludedItems) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentTeamIncludedItems) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentTeamIncludedItems) Set(val *IncidentTeamIncludedItems)
Set changes the value and indicates it's been called.
func (v *NullableIncidentTeamIncludedItems) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentTeamIncludedItems) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentTeamType handles when a null is used for IncidentTeamType.
type NullableIncidentTeamType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentTeamType(val *IncidentTeamType) *NullableIncidentTeamType
NewNullableIncidentTeamType initializes the struct as if Set has been called.
func (v NullableIncidentTeamType) Get() *IncidentTeamType
Get returns the associated value.
func (v NullableIncidentTeamType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentTeamType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentTeamType) Set(val *IncidentTeamType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentTeamType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentTeamType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentTimelineCellCreateAttributes handles when a null is used for IncidentTimelineCellCreateAttributes.
type NullableIncidentTimelineCellCreateAttributes struct {
// contains filtered or unexported fields
}
func NewNullableIncidentTimelineCellCreateAttributes(val *IncidentTimelineCellCreateAttributes) *NullableIncidentTimelineCellCreateAttributes
NewNullableIncidentTimelineCellCreateAttributes initializes the struct as if Set has been called.
func (v NullableIncidentTimelineCellCreateAttributes) Get() *IncidentTimelineCellCreateAttributes
Get returns the associated value.
func (v NullableIncidentTimelineCellCreateAttributes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentTimelineCellCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentTimelineCellCreateAttributes) Set(val *IncidentTimelineCellCreateAttributes)
Set changes the value and indicates it's been called.
func (v *NullableIncidentTimelineCellCreateAttributes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentTimelineCellCreateAttributes) Unset()
Unset sets the value to nil and resets the set flag/
NullableIncidentTimelineCellMarkdownContentType handles when a null is used for IncidentTimelineCellMarkdownContentType.
type NullableIncidentTimelineCellMarkdownContentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentTimelineCellMarkdownContentType(val *IncidentTimelineCellMarkdownContentType) *NullableIncidentTimelineCellMarkdownContentType
NewNullableIncidentTimelineCellMarkdownContentType initializes the struct as if Set has been called.
func (v NullableIncidentTimelineCellMarkdownContentType) Get() *IncidentTimelineCellMarkdownContentType
Get returns the associated value.
func (v NullableIncidentTimelineCellMarkdownContentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentTimelineCellMarkdownContentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentTimelineCellMarkdownContentType) Set(val *IncidentTimelineCellMarkdownContentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentTimelineCellMarkdownContentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentTimelineCellMarkdownContentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableIncidentType handles when a null is used for IncidentType.
type NullableIncidentType struct {
// contains filtered or unexported fields
}
func NewNullableIncidentType(val *IncidentType) *NullableIncidentType
NewNullableIncidentType initializes the struct as if Set has been called.
func (v NullableIncidentType) Get() *IncidentType
Get returns the associated value.
func (v NullableIncidentType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableIncidentType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableIncidentType) Set(val *IncidentType)
Set changes the value and indicates it's been called.
func (v *NullableIncidentType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableIncidentType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogType handles when a null is used for LogType.
type NullableLogType struct {
// contains filtered or unexported fields
}
func NewNullableLogType(val *LogType) *NullableLogType
NewNullableLogType initializes the struct as if Set has been called.
func (v NullableLogType) Get() *LogType
Get returns the associated value.
func (v NullableLogType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogType) Set(val *LogType)
Set changes the value and indicates it's been called.
func (v *NullableLogType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsAggregateBucketValue handles when a null is used for LogsAggregateBucketValue.
type NullableLogsAggregateBucketValue struct {
// contains filtered or unexported fields
}
func NewNullableLogsAggregateBucketValue(val *LogsAggregateBucketValue) *NullableLogsAggregateBucketValue
NewNullableLogsAggregateBucketValue initializes the struct as if Set has been called.
func (v NullableLogsAggregateBucketValue) Get() *LogsAggregateBucketValue
Get returns the associated value.
func (v NullableLogsAggregateBucketValue) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsAggregateBucketValue) Set(val *LogsAggregateBucketValue)
Set changes the value and indicates it's been called.
func (v *NullableLogsAggregateBucketValue) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsAggregateBucketValue) Unset()
Unset sets the value to nil and resets the set flag/
NullableLogsAggregateResponseStatus handles when a null is used for LogsAggregateResponseStatus.
type NullableLogsAggregateResponseStatus struct {
// contains filtered or unexported fields
}
func NewNullableLogsAggregateResponseStatus(val *LogsAggregateResponseStatus) *NullableLogsAggregateResponseStatus
NewNullableLogsAggregateResponseStatus initializes the struct as if Set has been called.
func (v NullableLogsAggregateResponseStatus) Get() *LogsAggregateResponseStatus
Get returns the associated value.
func (v NullableLogsAggregateResponseStatus) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsAggregateResponseStatus) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsAggregateResponseStatus) Set(val *LogsAggregateResponseStatus)
Set changes the value and indicates it's been called.
func (v *NullableLogsAggregateResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsAggregateResponseStatus) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsAggregateSortType handles when a null is used for LogsAggregateSortType.
type NullableLogsAggregateSortType struct {
// contains filtered or unexported fields
}
func NewNullableLogsAggregateSortType(val *LogsAggregateSortType) *NullableLogsAggregateSortType
NewNullableLogsAggregateSortType initializes the struct as if Set has been called.
func (v NullableLogsAggregateSortType) Get() *LogsAggregateSortType
Get returns the associated value.
func (v NullableLogsAggregateSortType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsAggregateSortType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsAggregateSortType) Set(val *LogsAggregateSortType)
Set changes the value and indicates it's been called.
func (v *NullableLogsAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsAggregateSortType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsAggregationFunction handles when a null is used for LogsAggregationFunction.
type NullableLogsAggregationFunction struct {
// contains filtered or unexported fields
}
func NewNullableLogsAggregationFunction(val *LogsAggregationFunction) *NullableLogsAggregationFunction
NewNullableLogsAggregationFunction initializes the struct as if Set has been called.
func (v NullableLogsAggregationFunction) Get() *LogsAggregationFunction
Get returns the associated value.
func (v NullableLogsAggregationFunction) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsAggregationFunction) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsAggregationFunction) Set(val *LogsAggregationFunction)
Set changes the value and indicates it's been called.
func (v *NullableLogsAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsAggregationFunction) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveCreateRequestDestination handles when a null is used for LogsArchiveCreateRequestDestination.
type NullableLogsArchiveCreateRequestDestination struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveCreateRequestDestination(val *LogsArchiveCreateRequestDestination) *NullableLogsArchiveCreateRequestDestination
NewNullableLogsArchiveCreateRequestDestination initializes the struct as if Set has been called.
func (v NullableLogsArchiveCreateRequestDestination) Get() *LogsArchiveCreateRequestDestination
Get returns the associated value.
func (v NullableLogsArchiveCreateRequestDestination) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveCreateRequestDestination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveCreateRequestDestination) Set(val *LogsArchiveCreateRequestDestination)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveCreateRequestDestination) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveCreateRequestDestination) Unset()
Unset sets the value to nil and resets the set flag/
NullableLogsArchiveDestination handles when a null is used for LogsArchiveDestination.
type NullableLogsArchiveDestination struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveDestination(val *LogsArchiveDestination) *NullableLogsArchiveDestination
NewNullableLogsArchiveDestination initializes the struct as if Set has been called.
func (v NullableLogsArchiveDestination) Get() *LogsArchiveDestination
Get returns the associated value.
func (v NullableLogsArchiveDestination) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveDestination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveDestination) Set(val *LogsArchiveDestination)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveDestination) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveDestination) Unset()
Unset sets the value to nil and resets the set flag/
NullableLogsArchiveDestinationAzureType handles when a null is used for LogsArchiveDestinationAzureType.
type NullableLogsArchiveDestinationAzureType struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveDestinationAzureType(val *LogsArchiveDestinationAzureType) *NullableLogsArchiveDestinationAzureType
NewNullableLogsArchiveDestinationAzureType initializes the struct as if Set has been called.
func (v NullableLogsArchiveDestinationAzureType) Get() *LogsArchiveDestinationAzureType
Get returns the associated value.
func (v NullableLogsArchiveDestinationAzureType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveDestinationAzureType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveDestinationAzureType) Set(val *LogsArchiveDestinationAzureType)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveDestinationAzureType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveDestinationAzureType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveDestinationGCSType handles when a null is used for LogsArchiveDestinationGCSType.
type NullableLogsArchiveDestinationGCSType struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveDestinationGCSType(val *LogsArchiveDestinationGCSType) *NullableLogsArchiveDestinationGCSType
NewNullableLogsArchiveDestinationGCSType initializes the struct as if Set has been called.
func (v NullableLogsArchiveDestinationGCSType) Get() *LogsArchiveDestinationGCSType
Get returns the associated value.
func (v NullableLogsArchiveDestinationGCSType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveDestinationGCSType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveDestinationGCSType) Set(val *LogsArchiveDestinationGCSType)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveDestinationGCSType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveDestinationGCSType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveDestinationS3Type handles when a null is used for LogsArchiveDestinationS3Type.
type NullableLogsArchiveDestinationS3Type struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveDestinationS3Type(val *LogsArchiveDestinationS3Type) *NullableLogsArchiveDestinationS3Type
NewNullableLogsArchiveDestinationS3Type initializes the struct as if Set has been called.
func (v NullableLogsArchiveDestinationS3Type) Get() *LogsArchiveDestinationS3Type
Get returns the associated value.
func (v NullableLogsArchiveDestinationS3Type) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveDestinationS3Type) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveDestinationS3Type) Set(val *LogsArchiveDestinationS3Type)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveDestinationS3Type) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveDestinationS3Type) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveOrderDefinitionType handles when a null is used for LogsArchiveOrderDefinitionType.
type NullableLogsArchiveOrderDefinitionType struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveOrderDefinitionType(val *LogsArchiveOrderDefinitionType) *NullableLogsArchiveOrderDefinitionType
NewNullableLogsArchiveOrderDefinitionType initializes the struct as if Set has been called.
func (v NullableLogsArchiveOrderDefinitionType) Get() *LogsArchiveOrderDefinitionType
Get returns the associated value.
func (v NullableLogsArchiveOrderDefinitionType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveOrderDefinitionType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveOrderDefinitionType) Set(val *LogsArchiveOrderDefinitionType)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveOrderDefinitionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveOrderDefinitionType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsArchiveState handles when a null is used for LogsArchiveState.
type NullableLogsArchiveState struct {
// contains filtered or unexported fields
}
func NewNullableLogsArchiveState(val *LogsArchiveState) *NullableLogsArchiveState
NewNullableLogsArchiveState initializes the struct as if Set has been called.
func (v NullableLogsArchiveState) Get() *LogsArchiveState
Get returns the associated value.
func (v NullableLogsArchiveState) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsArchiveState) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsArchiveState) Set(val *LogsArchiveState)
Set changes the value and indicates it's been called.
func (v *NullableLogsArchiveState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsArchiveState) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsComputeType handles when a null is used for LogsComputeType.
type NullableLogsComputeType struct {
// contains filtered or unexported fields
}
func NewNullableLogsComputeType(val *LogsComputeType) *NullableLogsComputeType
NewNullableLogsComputeType initializes the struct as if Set has been called.
func (v NullableLogsComputeType) Get() *LogsComputeType
Get returns the associated value.
func (v NullableLogsComputeType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsComputeType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsComputeType) Set(val *LogsComputeType)
Set changes the value and indicates it's been called.
func (v *NullableLogsComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsComputeType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsGroupByMissing handles when a null is used for LogsGroupByMissing.
type NullableLogsGroupByMissing struct {
// contains filtered or unexported fields
}
func NewNullableLogsGroupByMissing(val *LogsGroupByMissing) *NullableLogsGroupByMissing
NewNullableLogsGroupByMissing initializes the struct as if Set has been called.
func (v NullableLogsGroupByMissing) Get() *LogsGroupByMissing
Get returns the associated value.
func (v NullableLogsGroupByMissing) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsGroupByMissing) Set(val *LogsGroupByMissing)
Set changes the value and indicates it's been called.
func (v *NullableLogsGroupByMissing) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsGroupByMissing) Unset()
Unset sets the value to nil and resets the set flag/
NullableLogsGroupByTotal handles when a null is used for LogsGroupByTotal.
type NullableLogsGroupByTotal struct {
// contains filtered or unexported fields
}
func NewNullableLogsGroupByTotal(val *LogsGroupByTotal) *NullableLogsGroupByTotal
NewNullableLogsGroupByTotal initializes the struct as if Set has been called.
func (v NullableLogsGroupByTotal) Get() *LogsGroupByTotal
Get returns the associated value.
func (v NullableLogsGroupByTotal) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsGroupByTotal) Set(val *LogsGroupByTotal)
Set changes the value and indicates it's been called.
func (v *NullableLogsGroupByTotal) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsGroupByTotal) Unset()
Unset sets the value to nil and resets the set flag/
NullableLogsMetricComputeAggregationType handles when a null is used for LogsMetricComputeAggregationType.
type NullableLogsMetricComputeAggregationType struct {
// contains filtered or unexported fields
}
func NewNullableLogsMetricComputeAggregationType(val *LogsMetricComputeAggregationType) *NullableLogsMetricComputeAggregationType
NewNullableLogsMetricComputeAggregationType initializes the struct as if Set has been called.
func (v NullableLogsMetricComputeAggregationType) Get() *LogsMetricComputeAggregationType
Get returns the associated value.
func (v NullableLogsMetricComputeAggregationType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsMetricComputeAggregationType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsMetricComputeAggregationType) Set(val *LogsMetricComputeAggregationType)
Set changes the value and indicates it's been called.
func (v *NullableLogsMetricComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsMetricComputeAggregationType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsMetricResponseComputeAggregationType handles when a null is used for LogsMetricResponseComputeAggregationType.
type NullableLogsMetricResponseComputeAggregationType struct {
// contains filtered or unexported fields
}
func NewNullableLogsMetricResponseComputeAggregationType(val *LogsMetricResponseComputeAggregationType) *NullableLogsMetricResponseComputeAggregationType
NewNullableLogsMetricResponseComputeAggregationType initializes the struct as if Set has been called.
func (v NullableLogsMetricResponseComputeAggregationType) Get() *LogsMetricResponseComputeAggregationType
Get returns the associated value.
func (v NullableLogsMetricResponseComputeAggregationType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsMetricResponseComputeAggregationType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsMetricResponseComputeAggregationType) Set(val *LogsMetricResponseComputeAggregationType)
Set changes the value and indicates it's been called.
func (v *NullableLogsMetricResponseComputeAggregationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsMetricResponseComputeAggregationType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsMetricType handles when a null is used for LogsMetricType.
type NullableLogsMetricType struct {
// contains filtered or unexported fields
}
func NewNullableLogsMetricType(val *LogsMetricType) *NullableLogsMetricType
NewNullableLogsMetricType initializes the struct as if Set has been called.
func (v NullableLogsMetricType) Get() *LogsMetricType
Get returns the associated value.
func (v NullableLogsMetricType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsMetricType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsMetricType) Set(val *LogsMetricType)
Set changes the value and indicates it's been called.
func (v *NullableLogsMetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsMetricType) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsSort handles when a null is used for LogsSort.
type NullableLogsSort struct {
// contains filtered or unexported fields
}
func NewNullableLogsSort(val *LogsSort) *NullableLogsSort
NewNullableLogsSort initializes the struct as if Set has been called.
func (v NullableLogsSort) Get() *LogsSort
Get returns the associated value.
func (v NullableLogsSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsSort) Set(val *LogsSort)
Set changes the value and indicates it's been called.
func (v *NullableLogsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableLogsSortOrder handles when a null is used for LogsSortOrder.
type NullableLogsSortOrder struct {
// contains filtered or unexported fields
}
func NewNullableLogsSortOrder(val *LogsSortOrder) *NullableLogsSortOrder
NewNullableLogsSortOrder initializes the struct as if Set has been called.
func (v NullableLogsSortOrder) Get() *LogsSortOrder
Get returns the associated value.
func (v NullableLogsSortOrder) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableLogsSortOrder) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableLogsSortOrder) Set(val *LogsSortOrder)
Set changes the value and indicates it's been called.
func (v *NullableLogsSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableLogsSortOrder) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricActiveConfigurationType handles when a null is used for MetricActiveConfigurationType.
type NullableMetricActiveConfigurationType struct {
// contains filtered or unexported fields
}
func NewNullableMetricActiveConfigurationType(val *MetricActiveConfigurationType) *NullableMetricActiveConfigurationType
NewNullableMetricActiveConfigurationType initializes the struct as if Set has been called.
func (v NullableMetricActiveConfigurationType) Get() *MetricActiveConfigurationType
Get returns the associated value.
func (v NullableMetricActiveConfigurationType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricActiveConfigurationType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricActiveConfigurationType) Set(val *MetricActiveConfigurationType)
Set changes the value and indicates it's been called.
func (v *NullableMetricActiveConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricActiveConfigurationType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricBulkConfigureTagsType handles when a null is used for MetricBulkConfigureTagsType.
type NullableMetricBulkConfigureTagsType struct {
// contains filtered or unexported fields
}
func NewNullableMetricBulkConfigureTagsType(val *MetricBulkConfigureTagsType) *NullableMetricBulkConfigureTagsType
NewNullableMetricBulkConfigureTagsType initializes the struct as if Set has been called.
func (v NullableMetricBulkConfigureTagsType) Get() *MetricBulkConfigureTagsType
Get returns the associated value.
func (v NullableMetricBulkConfigureTagsType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricBulkConfigureTagsType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricBulkConfigureTagsType) Set(val *MetricBulkConfigureTagsType)
Set changes the value and indicates it's been called.
func (v *NullableMetricBulkConfigureTagsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricBulkConfigureTagsType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricContentEncoding handles when a null is used for MetricContentEncoding.
type NullableMetricContentEncoding struct {
// contains filtered or unexported fields
}
func NewNullableMetricContentEncoding(val *MetricContentEncoding) *NullableMetricContentEncoding
NewNullableMetricContentEncoding initializes the struct as if Set has been called.
func (v NullableMetricContentEncoding) Get() *MetricContentEncoding
Get returns the associated value.
func (v NullableMetricContentEncoding) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricContentEncoding) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricContentEncoding) Set(val *MetricContentEncoding)
Set changes the value and indicates it's been called.
func (v *NullableMetricContentEncoding) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricContentEncoding) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricCustomSpaceAggregation handles when a null is used for MetricCustomSpaceAggregation.
type NullableMetricCustomSpaceAggregation struct {
// contains filtered or unexported fields
}
func NewNullableMetricCustomSpaceAggregation(val *MetricCustomSpaceAggregation) *NullableMetricCustomSpaceAggregation
NewNullableMetricCustomSpaceAggregation initializes the struct as if Set has been called.
func (v NullableMetricCustomSpaceAggregation) Get() *MetricCustomSpaceAggregation
Get returns the associated value.
func (v NullableMetricCustomSpaceAggregation) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricCustomSpaceAggregation) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricCustomSpaceAggregation) Set(val *MetricCustomSpaceAggregation)
Set changes the value and indicates it's been called.
func (v *NullableMetricCustomSpaceAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricCustomSpaceAggregation) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricCustomTimeAggregation handles when a null is used for MetricCustomTimeAggregation.
type NullableMetricCustomTimeAggregation struct {
// contains filtered or unexported fields
}
func NewNullableMetricCustomTimeAggregation(val *MetricCustomTimeAggregation) *NullableMetricCustomTimeAggregation
NewNullableMetricCustomTimeAggregation initializes the struct as if Set has been called.
func (v NullableMetricCustomTimeAggregation) Get() *MetricCustomTimeAggregation
Get returns the associated value.
func (v NullableMetricCustomTimeAggregation) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricCustomTimeAggregation) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricCustomTimeAggregation) Set(val *MetricCustomTimeAggregation)
Set changes the value and indicates it's been called.
func (v *NullableMetricCustomTimeAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricCustomTimeAggregation) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricDistinctVolumeType handles when a null is used for MetricDistinctVolumeType.
type NullableMetricDistinctVolumeType struct {
// contains filtered or unexported fields
}
func NewNullableMetricDistinctVolumeType(val *MetricDistinctVolumeType) *NullableMetricDistinctVolumeType
NewNullableMetricDistinctVolumeType initializes the struct as if Set has been called.
func (v NullableMetricDistinctVolumeType) Get() *MetricDistinctVolumeType
Get returns the associated value.
func (v NullableMetricDistinctVolumeType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricDistinctVolumeType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricDistinctVolumeType) Set(val *MetricDistinctVolumeType)
Set changes the value and indicates it's been called.
func (v *NullableMetricDistinctVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricDistinctVolumeType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricEstimateResourceType handles when a null is used for MetricEstimateResourceType.
type NullableMetricEstimateResourceType struct {
// contains filtered or unexported fields
}
func NewNullableMetricEstimateResourceType(val *MetricEstimateResourceType) *NullableMetricEstimateResourceType
NewNullableMetricEstimateResourceType initializes the struct as if Set has been called.
func (v NullableMetricEstimateResourceType) Get() *MetricEstimateResourceType
Get returns the associated value.
func (v NullableMetricEstimateResourceType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricEstimateResourceType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricEstimateResourceType) Set(val *MetricEstimateResourceType)
Set changes the value and indicates it's been called.
func (v *NullableMetricEstimateResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricEstimateResourceType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricEstimateType handles when a null is used for MetricEstimateType.
type NullableMetricEstimateType struct {
// contains filtered or unexported fields
}
func NewNullableMetricEstimateType(val *MetricEstimateType) *NullableMetricEstimateType
NewNullableMetricEstimateType initializes the struct as if Set has been called.
func (v NullableMetricEstimateType) Get() *MetricEstimateType
Get returns the associated value.
func (v NullableMetricEstimateType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricEstimateType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricEstimateType) Set(val *MetricEstimateType)
Set changes the value and indicates it's been called.
func (v *NullableMetricEstimateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricEstimateType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricIngestedIndexedVolumeType handles when a null is used for MetricIngestedIndexedVolumeType.
type NullableMetricIngestedIndexedVolumeType struct {
// contains filtered or unexported fields
}
func NewNullableMetricIngestedIndexedVolumeType(val *MetricIngestedIndexedVolumeType) *NullableMetricIngestedIndexedVolumeType
NewNullableMetricIngestedIndexedVolumeType initializes the struct as if Set has been called.
func (v NullableMetricIngestedIndexedVolumeType) Get() *MetricIngestedIndexedVolumeType
Get returns the associated value.
func (v NullableMetricIngestedIndexedVolumeType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricIngestedIndexedVolumeType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricIngestedIndexedVolumeType) Set(val *MetricIngestedIndexedVolumeType)
Set changes the value and indicates it's been called.
func (v *NullableMetricIngestedIndexedVolumeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricIngestedIndexedVolumeType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricIntakeType handles when a null is used for MetricIntakeType.
type NullableMetricIntakeType struct {
// contains filtered or unexported fields
}
func NewNullableMetricIntakeType(val *MetricIntakeType) *NullableMetricIntakeType
NewNullableMetricIntakeType initializes the struct as if Set has been called.
func (v NullableMetricIntakeType) Get() *MetricIntakeType
Get returns the associated value.
func (v NullableMetricIntakeType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricIntakeType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricIntakeType) Set(val *MetricIntakeType)
Set changes the value and indicates it's been called.
func (v *NullableMetricIntakeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricIntakeType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricTagConfigurationMetricTypes handles when a null is used for MetricTagConfigurationMetricTypes.
type NullableMetricTagConfigurationMetricTypes struct {
// contains filtered or unexported fields
}
func NewNullableMetricTagConfigurationMetricTypes(val *MetricTagConfigurationMetricTypes) *NullableMetricTagConfigurationMetricTypes
NewNullableMetricTagConfigurationMetricTypes initializes the struct as if Set has been called.
func (v NullableMetricTagConfigurationMetricTypes) Get() *MetricTagConfigurationMetricTypes
Get returns the associated value.
func (v NullableMetricTagConfigurationMetricTypes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricTagConfigurationMetricTypes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricTagConfigurationMetricTypes) Set(val *MetricTagConfigurationMetricTypes)
Set changes the value and indicates it's been called.
func (v *NullableMetricTagConfigurationMetricTypes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricTagConfigurationMetricTypes) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricTagConfigurationType handles when a null is used for MetricTagConfigurationType.
type NullableMetricTagConfigurationType struct {
// contains filtered or unexported fields
}
func NewNullableMetricTagConfigurationType(val *MetricTagConfigurationType) *NullableMetricTagConfigurationType
NewNullableMetricTagConfigurationType initializes the struct as if Set has been called.
func (v NullableMetricTagConfigurationType) Get() *MetricTagConfigurationType
Get returns the associated value.
func (v NullableMetricTagConfigurationType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricTagConfigurationType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricTagConfigurationType) Set(val *MetricTagConfigurationType)
Set changes the value and indicates it's been called.
func (v *NullableMetricTagConfigurationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricTagConfigurationType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricType handles when a null is used for MetricType.
type NullableMetricType struct {
// contains filtered or unexported fields
}
func NewNullableMetricType(val *MetricType) *NullableMetricType
NewNullableMetricType initializes the struct as if Set has been called.
func (v NullableMetricType) Get() *MetricType
Get returns the associated value.
func (v NullableMetricType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricType) Set(val *MetricType)
Set changes the value and indicates it's been called.
func (v *NullableMetricType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricType) Unset()
Unset sets the value to nil and resets the set flag.
NullableMetricVolumes handles when a null is used for MetricVolumes.
type NullableMetricVolumes struct {
// contains filtered or unexported fields
}
func NewNullableMetricVolumes(val *MetricVolumes) *NullableMetricVolumes
NewNullableMetricVolumes initializes the struct as if Set has been called.
func (v NullableMetricVolumes) Get() *MetricVolumes
Get returns the associated value.
func (v NullableMetricVolumes) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricVolumes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricVolumes) Set(val *MetricVolumes)
Set changes the value and indicates it's been called.
func (v *NullableMetricVolumes) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricVolumes) Unset()
Unset sets the value to nil and resets the set flag/
NullableMetricsAndMetricTagConfigurations handles when a null is used for MetricsAndMetricTagConfigurations.
type NullableMetricsAndMetricTagConfigurations struct {
// contains filtered or unexported fields
}
func NewNullableMetricsAndMetricTagConfigurations(val *MetricsAndMetricTagConfigurations) *NullableMetricsAndMetricTagConfigurations
NewNullableMetricsAndMetricTagConfigurations initializes the struct as if Set has been called.
func (v NullableMetricsAndMetricTagConfigurations) Get() *MetricsAndMetricTagConfigurations
Get returns the associated value.
func (v NullableMetricsAndMetricTagConfigurations) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMetricsAndMetricTagConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMetricsAndMetricTagConfigurations) Set(val *MetricsAndMetricTagConfigurations)
Set changes the value and indicates it's been called.
func (v *NullableMetricsAndMetricTagConfigurations) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMetricsAndMetricTagConfigurations) Unset()
Unset sets the value to nil and resets the set flag/
NullableMonitorType handles when a null is used for MonitorType.
type NullableMonitorType struct {
// contains filtered or unexported fields
}
func NewNullableMonitorType(val *MonitorType) *NullableMonitorType
NewNullableMonitorType initializes the struct as if Set has been called.
func (v NullableMonitorType) Get() *MonitorType
Get returns the associated value.
func (v NullableMonitorType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableMonitorType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableMonitorType) Set(val *MonitorType)
Set changes the value and indicates it's been called.
func (v *NullableMonitorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableMonitorType) Unset()
Unset sets the value to nil and resets the set flag/
NullableNullableRelationshipToUserData handles when a null is used for NullableRelationshipToUserData.
type NullableNullableRelationshipToUserData struct {
// contains filtered or unexported fields
}
func NewNullableNullableRelationshipToUserData(val *NullableRelationshipToUserData) *NullableNullableRelationshipToUserData
NewNullableNullableRelationshipToUserData initializes the struct as if Set has been called.
func (v NullableNullableRelationshipToUserData) Get() *NullableRelationshipToUserData
Get returns the associated value.
func (v NullableNullableRelationshipToUserData) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableNullableRelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableNullableRelationshipToUserData) Set(val *NullableRelationshipToUserData)
Set changes the value and indicates it's been called.
func (v *NullableNullableRelationshipToUserData) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableNullableRelationshipToUserData) Unset()
Unset sets the value to nil and resets the set flag/
NullableOpsgenieServiceRegionType handles when a null is used for OpsgenieServiceRegionType.
type NullableOpsgenieServiceRegionType struct {
// contains filtered or unexported fields
}
func NewNullableOpsgenieServiceRegionType(val *OpsgenieServiceRegionType) *NullableOpsgenieServiceRegionType
NewNullableOpsgenieServiceRegionType initializes the struct as if Set has been called.
func (v NullableOpsgenieServiceRegionType) Get() *OpsgenieServiceRegionType
Get returns the associated value.
func (v NullableOpsgenieServiceRegionType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableOpsgenieServiceRegionType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableOpsgenieServiceRegionType) Set(val *OpsgenieServiceRegionType)
Set changes the value and indicates it's been called.
func (v *NullableOpsgenieServiceRegionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableOpsgenieServiceRegionType) Unset()
Unset sets the value to nil and resets the set flag.
NullableOpsgenieServiceType handles when a null is used for OpsgenieServiceType.
type NullableOpsgenieServiceType struct {
// contains filtered or unexported fields
}
func NewNullableOpsgenieServiceType(val *OpsgenieServiceType) *NullableOpsgenieServiceType
NewNullableOpsgenieServiceType initializes the struct as if Set has been called.
func (v NullableOpsgenieServiceType) Get() *OpsgenieServiceType
Get returns the associated value.
func (v NullableOpsgenieServiceType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableOpsgenieServiceType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableOpsgenieServiceType) Set(val *OpsgenieServiceType)
Set changes the value and indicates it's been called.
func (v *NullableOpsgenieServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableOpsgenieServiceType) Unset()
Unset sets the value to nil and resets the set flag.
NullableOrganizationsType handles when a null is used for OrganizationsType.
type NullableOrganizationsType struct {
// contains filtered or unexported fields
}
func NewNullableOrganizationsType(val *OrganizationsType) *NullableOrganizationsType
NewNullableOrganizationsType initializes the struct as if Set has been called.
func (v NullableOrganizationsType) Get() *OrganizationsType
Get returns the associated value.
func (v NullableOrganizationsType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableOrganizationsType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableOrganizationsType) Set(val *OrganizationsType)
Set changes the value and indicates it's been called.
func (v *NullableOrganizationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableOrganizationsType) Unset()
Unset sets the value to nil and resets the set flag.
NullablePermissionsType handles when a null is used for PermissionsType.
type NullablePermissionsType struct {
// contains filtered or unexported fields
}
func NewNullablePermissionsType(val *PermissionsType) *NullablePermissionsType
NewNullablePermissionsType initializes the struct as if Set has been called.
func (v NullablePermissionsType) Get() *PermissionsType
Get returns the associated value.
func (v NullablePermissionsType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullablePermissionsType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullablePermissionsType) Set(val *PermissionsType)
Set changes the value and indicates it's been called.
func (v *NullablePermissionsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullablePermissionsType) Unset()
Unset sets the value to nil and resets the set flag.
NullableProcessSummaryType handles when a null is used for ProcessSummaryType.
type NullableProcessSummaryType struct {
// contains filtered or unexported fields
}
func NewNullableProcessSummaryType(val *ProcessSummaryType) *NullableProcessSummaryType
NewNullableProcessSummaryType initializes the struct as if Set has been called.
func (v NullableProcessSummaryType) Get() *ProcessSummaryType
Get returns the associated value.
func (v NullableProcessSummaryType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableProcessSummaryType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableProcessSummaryType) Set(val *ProcessSummaryType)
Set changes the value and indicates it's been called.
func (v *NullableProcessSummaryType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableProcessSummaryType) Unset()
Unset sets the value to nil and resets the set flag.
NullableQuerySortOrder handles when a null is used for QuerySortOrder.
type NullableQuerySortOrder struct {
// contains filtered or unexported fields
}
func NewNullableQuerySortOrder(val *QuerySortOrder) *NullableQuerySortOrder
NewNullableQuerySortOrder initializes the struct as if Set has been called.
func (v NullableQuerySortOrder) Get() *QuerySortOrder
Get returns the associated value.
func (v NullableQuerySortOrder) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableQuerySortOrder) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableQuerySortOrder) Set(val *QuerySortOrder)
Set changes the value and indicates it's been called.
func (v *NullableQuerySortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableQuerySortOrder) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMAggregateBucketValue handles when a null is used for RUMAggregateBucketValue.
type NullableRUMAggregateBucketValue struct {
// contains filtered or unexported fields
}
func NewNullableRUMAggregateBucketValue(val *RUMAggregateBucketValue) *NullableRUMAggregateBucketValue
NewNullableRUMAggregateBucketValue initializes the struct as if Set has been called.
func (v NullableRUMAggregateBucketValue) Get() *RUMAggregateBucketValue
Get returns the associated value.
func (v NullableRUMAggregateBucketValue) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMAggregateBucketValue) Set(val *RUMAggregateBucketValue)
Set changes the value and indicates it's been called.
func (v *NullableRUMAggregateBucketValue) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMAggregateBucketValue) Unset()
Unset sets the value to nil and resets the set flag/
NullableRUMAggregateSortType handles when a null is used for RUMAggregateSortType.
type NullableRUMAggregateSortType struct {
// contains filtered or unexported fields
}
func NewNullableRUMAggregateSortType(val *RUMAggregateSortType) *NullableRUMAggregateSortType
NewNullableRUMAggregateSortType initializes the struct as if Set has been called.
func (v NullableRUMAggregateSortType) Get() *RUMAggregateSortType
Get returns the associated value.
func (v NullableRUMAggregateSortType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMAggregateSortType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMAggregateSortType) Set(val *RUMAggregateSortType)
Set changes the value and indicates it's been called.
func (v *NullableRUMAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMAggregateSortType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMAggregationFunction handles when a null is used for RUMAggregationFunction.
type NullableRUMAggregationFunction struct {
// contains filtered or unexported fields
}
func NewNullableRUMAggregationFunction(val *RUMAggregationFunction) *NullableRUMAggregationFunction
NewNullableRUMAggregationFunction initializes the struct as if Set has been called.
func (v NullableRUMAggregationFunction) Get() *RUMAggregationFunction
Get returns the associated value.
func (v NullableRUMAggregationFunction) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMAggregationFunction) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMAggregationFunction) Set(val *RUMAggregationFunction)
Set changes the value and indicates it's been called.
func (v *NullableRUMAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMAggregationFunction) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMApplicationCreateType handles when a null is used for RUMApplicationCreateType.
type NullableRUMApplicationCreateType struct {
// contains filtered or unexported fields
}
func NewNullableRUMApplicationCreateType(val *RUMApplicationCreateType) *NullableRUMApplicationCreateType
NewNullableRUMApplicationCreateType initializes the struct as if Set has been called.
func (v NullableRUMApplicationCreateType) Get() *RUMApplicationCreateType
Get returns the associated value.
func (v NullableRUMApplicationCreateType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMApplicationCreateType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMApplicationCreateType) Set(val *RUMApplicationCreateType)
Set changes the value and indicates it's been called.
func (v *NullableRUMApplicationCreateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMApplicationCreateType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMApplicationType handles when a null is used for RUMApplicationType.
type NullableRUMApplicationType struct {
// contains filtered or unexported fields
}
func NewNullableRUMApplicationType(val *RUMApplicationType) *NullableRUMApplicationType
NewNullableRUMApplicationType initializes the struct as if Set has been called.
func (v NullableRUMApplicationType) Get() *RUMApplicationType
Get returns the associated value.
func (v NullableRUMApplicationType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMApplicationType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMApplicationType) Set(val *RUMApplicationType)
Set changes the value and indicates it's been called.
func (v *NullableRUMApplicationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMApplicationType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMApplicationUpdateType handles when a null is used for RUMApplicationUpdateType.
type NullableRUMApplicationUpdateType struct {
// contains filtered or unexported fields
}
func NewNullableRUMApplicationUpdateType(val *RUMApplicationUpdateType) *NullableRUMApplicationUpdateType
NewNullableRUMApplicationUpdateType initializes the struct as if Set has been called.
func (v NullableRUMApplicationUpdateType) Get() *RUMApplicationUpdateType
Get returns the associated value.
func (v NullableRUMApplicationUpdateType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMApplicationUpdateType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMApplicationUpdateType) Set(val *RUMApplicationUpdateType)
Set changes the value and indicates it's been called.
func (v *NullableRUMApplicationUpdateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMApplicationUpdateType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMComputeType handles when a null is used for RUMComputeType.
type NullableRUMComputeType struct {
// contains filtered or unexported fields
}
func NewNullableRUMComputeType(val *RUMComputeType) *NullableRUMComputeType
NewNullableRUMComputeType initializes the struct as if Set has been called.
func (v NullableRUMComputeType) Get() *RUMComputeType
Get returns the associated value.
func (v NullableRUMComputeType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMComputeType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMComputeType) Set(val *RUMComputeType)
Set changes the value and indicates it's been called.
func (v *NullableRUMComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMComputeType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMEventType handles when a null is used for RUMEventType.
type NullableRUMEventType struct {
// contains filtered or unexported fields
}
func NewNullableRUMEventType(val *RUMEventType) *NullableRUMEventType
NewNullableRUMEventType initializes the struct as if Set has been called.
func (v NullableRUMEventType) Get() *RUMEventType
Get returns the associated value.
func (v NullableRUMEventType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMEventType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMEventType) Set(val *RUMEventType)
Set changes the value and indicates it's been called.
func (v *NullableRUMEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMEventType) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMGroupByMissing handles when a null is used for RUMGroupByMissing.
type NullableRUMGroupByMissing struct {
// contains filtered or unexported fields
}
func NewNullableRUMGroupByMissing(val *RUMGroupByMissing) *NullableRUMGroupByMissing
NewNullableRUMGroupByMissing initializes the struct as if Set has been called.
func (v NullableRUMGroupByMissing) Get() *RUMGroupByMissing
Get returns the associated value.
func (v NullableRUMGroupByMissing) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMGroupByMissing) Set(val *RUMGroupByMissing)
Set changes the value and indicates it's been called.
func (v *NullableRUMGroupByMissing) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMGroupByMissing) Unset()
Unset sets the value to nil and resets the set flag/
NullableRUMGroupByTotal handles when a null is used for RUMGroupByTotal.
type NullableRUMGroupByTotal struct {
// contains filtered or unexported fields
}
func NewNullableRUMGroupByTotal(val *RUMGroupByTotal) *NullableRUMGroupByTotal
NewNullableRUMGroupByTotal initializes the struct as if Set has been called.
func (v NullableRUMGroupByTotal) Get() *RUMGroupByTotal
Get returns the associated value.
func (v NullableRUMGroupByTotal) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMGroupByTotal) Set(val *RUMGroupByTotal)
Set changes the value and indicates it's been called.
func (v *NullableRUMGroupByTotal) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMGroupByTotal) Unset()
Unset sets the value to nil and resets the set flag/
NullableRUMResponseStatus handles when a null is used for RUMResponseStatus.
type NullableRUMResponseStatus struct {
// contains filtered or unexported fields
}
func NewNullableRUMResponseStatus(val *RUMResponseStatus) *NullableRUMResponseStatus
NewNullableRUMResponseStatus initializes the struct as if Set has been called.
func (v NullableRUMResponseStatus) Get() *RUMResponseStatus
Get returns the associated value.
func (v NullableRUMResponseStatus) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMResponseStatus) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMResponseStatus) Set(val *RUMResponseStatus)
Set changes the value and indicates it's been called.
func (v *NullableRUMResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMResponseStatus) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMSort handles when a null is used for RUMSort.
type NullableRUMSort struct {
// contains filtered or unexported fields
}
func NewNullableRUMSort(val *RUMSort) *NullableRUMSort
NewNullableRUMSort initializes the struct as if Set has been called.
func (v NullableRUMSort) Get() *RUMSort
Get returns the associated value.
func (v NullableRUMSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMSort) Set(val *RUMSort)
Set changes the value and indicates it's been called.
func (v *NullableRUMSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableRUMSortOrder handles when a null is used for RUMSortOrder.
type NullableRUMSortOrder struct {
// contains filtered or unexported fields
}
func NewNullableRUMSortOrder(val *RUMSortOrder) *NullableRUMSortOrder
NewNullableRUMSortOrder initializes the struct as if Set has been called.
func (v NullableRUMSortOrder) Get() *RUMSortOrder
Get returns the associated value.
func (v NullableRUMSortOrder) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRUMSortOrder) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRUMSortOrder) Set(val *RUMSortOrder)
Set changes the value and indicates it's been called.
func (v *NullableRUMSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRUMSortOrder) Unset()
Unset sets the value to nil and resets the set flag.
NullableRelationshipToUser Relationship to user.
type NullableRelationshipToUser struct {
// Relationship to user object.
Data NullableNullableRelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewNullableRelationshipToUser(data NullableNullableRelationshipToUserData) *NullableRelationshipToUser
NewNullableRelationshipToUser instantiates a new NullableRelationshipToUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewNullableRelationshipToUserWithDefaults() *NullableRelationshipToUser
NewNullableRelationshipToUserWithDefaults instantiates a new NullableRelationshipToUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *NullableRelationshipToUser) GetData() NullableRelationshipToUserData
GetData returns the Data field value. If the value is explicit nil, the zero value for NullableRelationshipToUserData will be returned.
func (o *NullableRelationshipToUser) GetDataOk() (*NullableRelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o NullableRelationshipToUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *NullableRelationshipToUser) SetData(v NullableRelationshipToUserData)
SetData sets field value.
func (o *NullableRelationshipToUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableRelationshipToUserData Relationship to user object.
type NullableRelationshipToUserData struct {
// A unique identifier that represents the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewNullableRelationshipToUserData(id string, typeVar UsersType) *NullableRelationshipToUserData
NewNullableRelationshipToUserData instantiates a new NullableRelationshipToUserData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewNullableRelationshipToUserDataWithDefaults() *NullableRelationshipToUserData
NewNullableRelationshipToUserDataWithDefaults instantiates a new NullableRelationshipToUserData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *NullableRelationshipToUserData) GetId() string
GetId returns the Id field value.
func (o *NullableRelationshipToUserData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *NullableRelationshipToUserData) GetType() UsersType
GetType returns the Type field value.
func (o *NullableRelationshipToUserData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o NullableRelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *NullableRelationshipToUserData) SetId(v string)
SetId sets field value.
func (o *NullableRelationshipToUserData) SetType(v UsersType)
SetType sets field value.
func (o *NullableRelationshipToUserData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
NullableRolesSort handles when a null is used for RolesSort.
type NullableRolesSort struct {
// contains filtered or unexported fields
}
func NewNullableRolesSort(val *RolesSort) *NullableRolesSort
NewNullableRolesSort initializes the struct as if Set has been called.
func (v NullableRolesSort) Get() *RolesSort
Get returns the associated value.
func (v NullableRolesSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRolesSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRolesSort) Set(val *RolesSort)
Set changes the value and indicates it's been called.
func (v *NullableRolesSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRolesSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableRolesType handles when a null is used for RolesType.
type NullableRolesType struct {
// contains filtered or unexported fields
}
func NewNullableRolesType(val *RolesType) *NullableRolesType
NewNullableRolesType initializes the struct as if Set has been called.
func (v NullableRolesType) Get() *RolesType
Get returns the associated value.
func (v NullableRolesType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableRolesType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableRolesType) Set(val *RolesType)
Set changes the value and indicates it's been called.
func (v *NullableRolesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableRolesType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSAMLAssertionAttributesType handles when a null is used for SAMLAssertionAttributesType.
type NullableSAMLAssertionAttributesType struct {
// contains filtered or unexported fields
}
func NewNullableSAMLAssertionAttributesType(val *SAMLAssertionAttributesType) *NullableSAMLAssertionAttributesType
NewNullableSAMLAssertionAttributesType initializes the struct as if Set has been called.
func (v NullableSAMLAssertionAttributesType) Get() *SAMLAssertionAttributesType
Get returns the associated value.
func (v NullableSAMLAssertionAttributesType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSAMLAssertionAttributesType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSAMLAssertionAttributesType) Set(val *SAMLAssertionAttributesType)
Set changes the value and indicates it's been called.
func (v *NullableSAMLAssertionAttributesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSAMLAssertionAttributesType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityFilterFilteredDataType handles when a null is used for SecurityFilterFilteredDataType.
type NullableSecurityFilterFilteredDataType struct {
// contains filtered or unexported fields
}
func NewNullableSecurityFilterFilteredDataType(val *SecurityFilterFilteredDataType) *NullableSecurityFilterFilteredDataType
NewNullableSecurityFilterFilteredDataType initializes the struct as if Set has been called.
func (v NullableSecurityFilterFilteredDataType) Get() *SecurityFilterFilteredDataType
Get returns the associated value.
func (v NullableSecurityFilterFilteredDataType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityFilterFilteredDataType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityFilterFilteredDataType) Set(val *SecurityFilterFilteredDataType)
Set changes the value and indicates it's been called.
func (v *NullableSecurityFilterFilteredDataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityFilterFilteredDataType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityFilterType handles when a null is used for SecurityFilterType.
type NullableSecurityFilterType struct {
// contains filtered or unexported fields
}
func NewNullableSecurityFilterType(val *SecurityFilterType) *NullableSecurityFilterType
NewNullableSecurityFilterType initializes the struct as if Set has been called.
func (v NullableSecurityFilterType) Get() *SecurityFilterType
Get returns the associated value.
func (v NullableSecurityFilterType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityFilterType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityFilterType) Set(val *SecurityFilterType)
Set changes the value and indicates it's been called.
func (v *NullableSecurityFilterType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityFilterType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringFilterAction handles when a null is used for SecurityMonitoringFilterAction.
type NullableSecurityMonitoringFilterAction struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringFilterAction(val *SecurityMonitoringFilterAction) *NullableSecurityMonitoringFilterAction
NewNullableSecurityMonitoringFilterAction initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringFilterAction) Get() *SecurityMonitoringFilterAction
Get returns the associated value.
func (v NullableSecurityMonitoringFilterAction) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringFilterAction) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringFilterAction) Set(val *SecurityMonitoringFilterAction)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringFilterAction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringFilterAction) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleCreatePayload handles when a null is used for SecurityMonitoringRuleCreatePayload.
type NullableSecurityMonitoringRuleCreatePayload struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleCreatePayload(val *SecurityMonitoringRuleCreatePayload) *NullableSecurityMonitoringRuleCreatePayload
NewNullableSecurityMonitoringRuleCreatePayload initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleCreatePayload) Get() *SecurityMonitoringRuleCreatePayload
Get returns the associated value.
func (v NullableSecurityMonitoringRuleCreatePayload) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleCreatePayload) Set(val *SecurityMonitoringRuleCreatePayload)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleCreatePayload) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleCreatePayload) Unset()
Unset sets the value to nil and resets the set flag/
NullableSecurityMonitoringRuleDetectionMethod handles when a null is used for SecurityMonitoringRuleDetectionMethod.
type NullableSecurityMonitoringRuleDetectionMethod struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleDetectionMethod(val *SecurityMonitoringRuleDetectionMethod) *NullableSecurityMonitoringRuleDetectionMethod
NewNullableSecurityMonitoringRuleDetectionMethod initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleDetectionMethod) Get() *SecurityMonitoringRuleDetectionMethod
Get returns the associated value.
func (v NullableSecurityMonitoringRuleDetectionMethod) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleDetectionMethod) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleDetectionMethod) Set(val *SecurityMonitoringRuleDetectionMethod)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleDetectionMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleDetectionMethod) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleEvaluationWindow handles when a null is used for SecurityMonitoringRuleEvaluationWindow.
type NullableSecurityMonitoringRuleEvaluationWindow struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleEvaluationWindow(val *SecurityMonitoringRuleEvaluationWindow) *NullableSecurityMonitoringRuleEvaluationWindow
NewNullableSecurityMonitoringRuleEvaluationWindow initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleEvaluationWindow) Get() *SecurityMonitoringRuleEvaluationWindow
Get returns the associated value.
func (v NullableSecurityMonitoringRuleEvaluationWindow) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleEvaluationWindow) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleEvaluationWindow) Set(val *SecurityMonitoringRuleEvaluationWindow)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleEvaluationWindow) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleEvaluationWindow) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleHardcodedEvaluatorType handles when a null is used for SecurityMonitoringRuleHardcodedEvaluatorType.
type NullableSecurityMonitoringRuleHardcodedEvaluatorType struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleHardcodedEvaluatorType(val *SecurityMonitoringRuleHardcodedEvaluatorType) *NullableSecurityMonitoringRuleHardcodedEvaluatorType
NewNullableSecurityMonitoringRuleHardcodedEvaluatorType initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleHardcodedEvaluatorType) Get() *SecurityMonitoringRuleHardcodedEvaluatorType
Get returns the associated value.
func (v NullableSecurityMonitoringRuleHardcodedEvaluatorType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleHardcodedEvaluatorType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleHardcodedEvaluatorType) Set(val *SecurityMonitoringRuleHardcodedEvaluatorType)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleHardcodedEvaluatorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleHardcodedEvaluatorType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleKeepAlive handles when a null is used for SecurityMonitoringRuleKeepAlive.
type NullableSecurityMonitoringRuleKeepAlive struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleKeepAlive(val *SecurityMonitoringRuleKeepAlive) *NullableSecurityMonitoringRuleKeepAlive
NewNullableSecurityMonitoringRuleKeepAlive initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleKeepAlive) Get() *SecurityMonitoringRuleKeepAlive
Get returns the associated value.
func (v NullableSecurityMonitoringRuleKeepAlive) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleKeepAlive) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleKeepAlive) Set(val *SecurityMonitoringRuleKeepAlive)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleKeepAlive) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleKeepAlive) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleMaxSignalDuration handles when a null is used for SecurityMonitoringRuleMaxSignalDuration.
type NullableSecurityMonitoringRuleMaxSignalDuration struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleMaxSignalDuration(val *SecurityMonitoringRuleMaxSignalDuration) *NullableSecurityMonitoringRuleMaxSignalDuration
NewNullableSecurityMonitoringRuleMaxSignalDuration initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleMaxSignalDuration) Get() *SecurityMonitoringRuleMaxSignalDuration
Get returns the associated value.
func (v NullableSecurityMonitoringRuleMaxSignalDuration) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleMaxSignalDuration) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleMaxSignalDuration) Set(val *SecurityMonitoringRuleMaxSignalDuration)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleMaxSignalDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleMaxSignalDuration) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleNewValueOptionsForgetAfter handles when a null is used for SecurityMonitoringRuleNewValueOptionsForgetAfter.
type NullableSecurityMonitoringRuleNewValueOptionsForgetAfter struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleNewValueOptionsForgetAfter(val *SecurityMonitoringRuleNewValueOptionsForgetAfter) *NullableSecurityMonitoringRuleNewValueOptionsForgetAfter
NewNullableSecurityMonitoringRuleNewValueOptionsForgetAfter initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) Get() *SecurityMonitoringRuleNewValueOptionsForgetAfter
Get returns the associated value.
func (v NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) Set(val *SecurityMonitoringRuleNewValueOptionsForgetAfter)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsForgetAfter) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleNewValueOptionsLearningDuration handles when a null is used for SecurityMonitoringRuleNewValueOptionsLearningDuration.
type NullableSecurityMonitoringRuleNewValueOptionsLearningDuration struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleNewValueOptionsLearningDuration(val *SecurityMonitoringRuleNewValueOptionsLearningDuration) *NullableSecurityMonitoringRuleNewValueOptionsLearningDuration
NewNullableSecurityMonitoringRuleNewValueOptionsLearningDuration initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) Get() *SecurityMonitoringRuleNewValueOptionsLearningDuration
Get returns the associated value.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) Set(val *SecurityMonitoringRuleNewValueOptionsLearningDuration)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningDuration) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleNewValueOptionsLearningMethod handles when a null is used for SecurityMonitoringRuleNewValueOptionsLearningMethod.
type NullableSecurityMonitoringRuleNewValueOptionsLearningMethod struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleNewValueOptionsLearningMethod(val *SecurityMonitoringRuleNewValueOptionsLearningMethod) *NullableSecurityMonitoringRuleNewValueOptionsLearningMethod
NewNullableSecurityMonitoringRuleNewValueOptionsLearningMethod initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) Get() *SecurityMonitoringRuleNewValueOptionsLearningMethod
Get returns the associated value.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) Set(val *SecurityMonitoringRuleNewValueOptionsLearningMethod)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningMethod) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold handles when a null is used for SecurityMonitoringRuleNewValueOptionsLearningThreshold.
type NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleNewValueOptionsLearningThreshold(val *SecurityMonitoringRuleNewValueOptionsLearningThreshold) *NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold
NewNullableSecurityMonitoringRuleNewValueOptionsLearningThreshold initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) Get() *SecurityMonitoringRuleNewValueOptionsLearningThreshold
Get returns the associated value.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) Set(val *SecurityMonitoringRuleNewValueOptionsLearningThreshold)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleNewValueOptionsLearningThreshold) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleQuery handles when a null is used for SecurityMonitoringRuleQuery.
type NullableSecurityMonitoringRuleQuery struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleQuery(val *SecurityMonitoringRuleQuery) *NullableSecurityMonitoringRuleQuery
NewNullableSecurityMonitoringRuleQuery initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleQuery) Get() *SecurityMonitoringRuleQuery
Get returns the associated value.
func (v NullableSecurityMonitoringRuleQuery) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleQuery) Set(val *SecurityMonitoringRuleQuery)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleQuery) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleQuery) Unset()
Unset sets the value to nil and resets the set flag/
NullableSecurityMonitoringRuleQueryAggregation handles when a null is used for SecurityMonitoringRuleQueryAggregation.
type NullableSecurityMonitoringRuleQueryAggregation struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleQueryAggregation(val *SecurityMonitoringRuleQueryAggregation) *NullableSecurityMonitoringRuleQueryAggregation
NewNullableSecurityMonitoringRuleQueryAggregation initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleQueryAggregation) Get() *SecurityMonitoringRuleQueryAggregation
Get returns the associated value.
func (v NullableSecurityMonitoringRuleQueryAggregation) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleQueryAggregation) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleQueryAggregation) Set(val *SecurityMonitoringRuleQueryAggregation)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleQueryAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleQueryAggregation) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleResponse handles when a null is used for SecurityMonitoringRuleResponse.
type NullableSecurityMonitoringRuleResponse struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleResponse(val *SecurityMonitoringRuleResponse) *NullableSecurityMonitoringRuleResponse
NewNullableSecurityMonitoringRuleResponse initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleResponse) Get() *SecurityMonitoringRuleResponse
Get returns the associated value.
func (v NullableSecurityMonitoringRuleResponse) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleResponse) Set(val *SecurityMonitoringRuleResponse)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleResponse) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleResponse) Unset()
Unset sets the value to nil and resets the set flag/
NullableSecurityMonitoringRuleSeverity handles when a null is used for SecurityMonitoringRuleSeverity.
type NullableSecurityMonitoringRuleSeverity struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleSeverity(val *SecurityMonitoringRuleSeverity) *NullableSecurityMonitoringRuleSeverity
NewNullableSecurityMonitoringRuleSeverity initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleSeverity) Get() *SecurityMonitoringRuleSeverity
Get returns the associated value.
func (v NullableSecurityMonitoringRuleSeverity) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleSeverity) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleSeverity) Set(val *SecurityMonitoringRuleSeverity)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleSeverity) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleSeverity) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleTypeCreate handles when a null is used for SecurityMonitoringRuleTypeCreate.
type NullableSecurityMonitoringRuleTypeCreate struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleTypeCreate(val *SecurityMonitoringRuleTypeCreate) *NullableSecurityMonitoringRuleTypeCreate
NewNullableSecurityMonitoringRuleTypeCreate initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleTypeCreate) Get() *SecurityMonitoringRuleTypeCreate
Get returns the associated value.
func (v NullableSecurityMonitoringRuleTypeCreate) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleTypeCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleTypeCreate) Set(val *SecurityMonitoringRuleTypeCreate)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleTypeCreate) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleTypeCreate) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringRuleTypeRead handles when a null is used for SecurityMonitoringRuleTypeRead.
type NullableSecurityMonitoringRuleTypeRead struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringRuleTypeRead(val *SecurityMonitoringRuleTypeRead) *NullableSecurityMonitoringRuleTypeRead
NewNullableSecurityMonitoringRuleTypeRead initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringRuleTypeRead) Get() *SecurityMonitoringRuleTypeRead
Get returns the associated value.
func (v NullableSecurityMonitoringRuleTypeRead) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringRuleTypeRead) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringRuleTypeRead) Set(val *SecurityMonitoringRuleTypeRead)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringRuleTypeRead) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringRuleTypeRead) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringSignalArchiveReason handles when a null is used for SecurityMonitoringSignalArchiveReason.
type NullableSecurityMonitoringSignalArchiveReason struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringSignalArchiveReason(val *SecurityMonitoringSignalArchiveReason) *NullableSecurityMonitoringSignalArchiveReason
NewNullableSecurityMonitoringSignalArchiveReason initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringSignalArchiveReason) Get() *SecurityMonitoringSignalArchiveReason
Get returns the associated value.
func (v NullableSecurityMonitoringSignalArchiveReason) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringSignalArchiveReason) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringSignalArchiveReason) Set(val *SecurityMonitoringSignalArchiveReason)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringSignalArchiveReason) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringSignalArchiveReason) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringSignalRuleType handles when a null is used for SecurityMonitoringSignalRuleType.
type NullableSecurityMonitoringSignalRuleType struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringSignalRuleType(val *SecurityMonitoringSignalRuleType) *NullableSecurityMonitoringSignalRuleType
NewNullableSecurityMonitoringSignalRuleType initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringSignalRuleType) Get() *SecurityMonitoringSignalRuleType
Get returns the associated value.
func (v NullableSecurityMonitoringSignalRuleType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringSignalRuleType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringSignalRuleType) Set(val *SecurityMonitoringSignalRuleType)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringSignalRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringSignalRuleType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringSignalState handles when a null is used for SecurityMonitoringSignalState.
type NullableSecurityMonitoringSignalState struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringSignalState(val *SecurityMonitoringSignalState) *NullableSecurityMonitoringSignalState
NewNullableSecurityMonitoringSignalState initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringSignalState) Get() *SecurityMonitoringSignalState
Get returns the associated value.
func (v NullableSecurityMonitoringSignalState) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringSignalState) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringSignalState) Set(val *SecurityMonitoringSignalState)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringSignalState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringSignalState) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringSignalType handles when a null is used for SecurityMonitoringSignalType.
type NullableSecurityMonitoringSignalType struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringSignalType(val *SecurityMonitoringSignalType) *NullableSecurityMonitoringSignalType
NewNullableSecurityMonitoringSignalType initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringSignalType) Get() *SecurityMonitoringSignalType
Get returns the associated value.
func (v NullableSecurityMonitoringSignalType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringSignalType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringSignalType) Set(val *SecurityMonitoringSignalType)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringSignalType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringSignalType) Unset()
Unset sets the value to nil and resets the set flag.
NullableSecurityMonitoringSignalsSort handles when a null is used for SecurityMonitoringSignalsSort.
type NullableSecurityMonitoringSignalsSort struct {
// contains filtered or unexported fields
}
func NewNullableSecurityMonitoringSignalsSort(val *SecurityMonitoringSignalsSort) *NullableSecurityMonitoringSignalsSort
NewNullableSecurityMonitoringSignalsSort initializes the struct as if Set has been called.
func (v NullableSecurityMonitoringSignalsSort) Get() *SecurityMonitoringSignalsSort
Get returns the associated value.
func (v NullableSecurityMonitoringSignalsSort) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableSecurityMonitoringSignalsSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableSecurityMonitoringSignalsSort) Set(val *SecurityMonitoringSignalsSort)
Set changes the value and indicates it's been called.
func (v *NullableSecurityMonitoringSignalsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableSecurityMonitoringSignalsSort) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionSchema handles when a null is used for ServiceDefinitionSchema.
type NullableServiceDefinitionSchema struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionSchema(val *ServiceDefinitionSchema) *NullableServiceDefinitionSchema
NewNullableServiceDefinitionSchema initializes the struct as if Set has been called.
func (v NullableServiceDefinitionSchema) Get() *ServiceDefinitionSchema
Get returns the associated value.
func (v NullableServiceDefinitionSchema) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionSchema) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionSchema) Set(val *ServiceDefinitionSchema)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionSchema) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionSchema) Unset()
Unset sets the value to nil and resets the set flag/
NullableServiceDefinitionV1ResourceType handles when a null is used for ServiceDefinitionV1ResourceType.
type NullableServiceDefinitionV1ResourceType struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV1ResourceType(val *ServiceDefinitionV1ResourceType) *NullableServiceDefinitionV1ResourceType
NewNullableServiceDefinitionV1ResourceType initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV1ResourceType) Get() *ServiceDefinitionV1ResourceType
Get returns the associated value.
func (v NullableServiceDefinitionV1ResourceType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV1ResourceType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV1ResourceType) Set(val *ServiceDefinitionV1ResourceType)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV1ResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV1ResourceType) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV1Version handles when a null is used for ServiceDefinitionV1Version.
type NullableServiceDefinitionV1Version struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV1Version(val *ServiceDefinitionV1Version) *NullableServiceDefinitionV1Version
NewNullableServiceDefinitionV1Version initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV1Version) Get() *ServiceDefinitionV1Version
Get returns the associated value.
func (v NullableServiceDefinitionV1Version) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV1Version) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV1Version) Set(val *ServiceDefinitionV1Version)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV1Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV1Version) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV2Contact handles when a null is used for ServiceDefinitionV2Contact.
type NullableServiceDefinitionV2Contact struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2Contact(val *ServiceDefinitionV2Contact) *NullableServiceDefinitionV2Contact
NewNullableServiceDefinitionV2Contact initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2Contact) Get() *ServiceDefinitionV2Contact
Get returns the associated value.
func (v NullableServiceDefinitionV2Contact) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2Contact) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2Contact) Set(val *ServiceDefinitionV2Contact)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2Contact) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2Contact) Unset()
Unset sets the value to nil and resets the set flag/
NullableServiceDefinitionV2EmailType handles when a null is used for ServiceDefinitionV2EmailType.
type NullableServiceDefinitionV2EmailType struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2EmailType(val *ServiceDefinitionV2EmailType) *NullableServiceDefinitionV2EmailType
NewNullableServiceDefinitionV2EmailType initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2EmailType) Get() *ServiceDefinitionV2EmailType
Get returns the associated value.
func (v NullableServiceDefinitionV2EmailType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2EmailType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2EmailType) Set(val *ServiceDefinitionV2EmailType)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2EmailType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2EmailType) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV2LinkType handles when a null is used for ServiceDefinitionV2LinkType.
type NullableServiceDefinitionV2LinkType struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2LinkType(val *ServiceDefinitionV2LinkType) *NullableServiceDefinitionV2LinkType
NewNullableServiceDefinitionV2LinkType initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2LinkType) Get() *ServiceDefinitionV2LinkType
Get returns the associated value.
func (v NullableServiceDefinitionV2LinkType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2LinkType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2LinkType) Set(val *ServiceDefinitionV2LinkType)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2LinkType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2LinkType) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV2OpsgenieRegion handles when a null is used for ServiceDefinitionV2OpsgenieRegion.
type NullableServiceDefinitionV2OpsgenieRegion struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2OpsgenieRegion(val *ServiceDefinitionV2OpsgenieRegion) *NullableServiceDefinitionV2OpsgenieRegion
NewNullableServiceDefinitionV2OpsgenieRegion initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2OpsgenieRegion) Get() *ServiceDefinitionV2OpsgenieRegion
Get returns the associated value.
func (v NullableServiceDefinitionV2OpsgenieRegion) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2OpsgenieRegion) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2OpsgenieRegion) Set(val *ServiceDefinitionV2OpsgenieRegion)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2OpsgenieRegion) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2OpsgenieRegion) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV2SlackType handles when a null is used for ServiceDefinitionV2SlackType.
type NullableServiceDefinitionV2SlackType struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2SlackType(val *ServiceDefinitionV2SlackType) *NullableServiceDefinitionV2SlackType
NewNullableServiceDefinitionV2SlackType initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2SlackType) Get() *ServiceDefinitionV2SlackType
Get returns the associated value.
func (v NullableServiceDefinitionV2SlackType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2SlackType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2SlackType) Set(val *ServiceDefinitionV2SlackType)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2SlackType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2SlackType) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionV2Version handles when a null is used for ServiceDefinitionV2Version.
type NullableServiceDefinitionV2Version struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionV2Version(val *ServiceDefinitionV2Version) *NullableServiceDefinitionV2Version
NewNullableServiceDefinitionV2Version initializes the struct as if Set has been called.
func (v NullableServiceDefinitionV2Version) Get() *ServiceDefinitionV2Version
Get returns the associated value.
func (v NullableServiceDefinitionV2Version) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionV2Version) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionV2Version) Set(val *ServiceDefinitionV2Version)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionV2Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionV2Version) Unset()
Unset sets the value to nil and resets the set flag.
NullableServiceDefinitionsCreateRequest handles when a null is used for ServiceDefinitionsCreateRequest.
type NullableServiceDefinitionsCreateRequest struct {
// contains filtered or unexported fields
}
func NewNullableServiceDefinitionsCreateRequest(val *ServiceDefinitionsCreateRequest) *NullableServiceDefinitionsCreateRequest
NewNullableServiceDefinitionsCreateRequest initializes the struct as if Set has been called.
func (v NullableServiceDefinitionsCreateRequest) Get() *ServiceDefinitionsCreateRequest
Get returns the associated value.
func (v NullableServiceDefinitionsCreateRequest) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableServiceDefinitionsCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableServiceDefinitionsCreateRequest) Set(val *ServiceDefinitionsCreateRequest)
Set changes the value and indicates it's been called.
func (v *NullableServiceDefinitionsCreateRequest) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableServiceDefinitionsCreateRequest) Unset()
Unset sets the value to nil and resets the set flag/
NullableUsageTimeSeriesType handles when a null is used for UsageTimeSeriesType.
type NullableUsageTimeSeriesType struct {
// contains filtered or unexported fields
}
func NewNullableUsageTimeSeriesType(val *UsageTimeSeriesType) *NullableUsageTimeSeriesType
NewNullableUsageTimeSeriesType initializes the struct as if Set has been called.
func (v NullableUsageTimeSeriesType) Get() *UsageTimeSeriesType
Get returns the associated value.
func (v NullableUsageTimeSeriesType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUsageTimeSeriesType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUsageTimeSeriesType) Set(val *UsageTimeSeriesType)
Set changes the value and indicates it's been called.
func (v *NullableUsageTimeSeriesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUsageTimeSeriesType) Unset()
Unset sets the value to nil and resets the set flag.
NullableUserInvitationsType handles when a null is used for UserInvitationsType.
type NullableUserInvitationsType struct {
// contains filtered or unexported fields
}
func NewNullableUserInvitationsType(val *UserInvitationsType) *NullableUserInvitationsType
NewNullableUserInvitationsType initializes the struct as if Set has been called.
func (v NullableUserInvitationsType) Get() *UserInvitationsType
Get returns the associated value.
func (v NullableUserInvitationsType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUserInvitationsType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUserInvitationsType) Set(val *UserInvitationsType)
Set changes the value and indicates it's been called.
func (v *NullableUserInvitationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUserInvitationsType) Unset()
Unset sets the value to nil and resets the set flag.
NullableUserResponseIncludedItem handles when a null is used for UserResponseIncludedItem.
type NullableUserResponseIncludedItem struct {
// contains filtered or unexported fields
}
func NewNullableUserResponseIncludedItem(val *UserResponseIncludedItem) *NullableUserResponseIncludedItem
NewNullableUserResponseIncludedItem initializes the struct as if Set has been called.
func (v NullableUserResponseIncludedItem) Get() *UserResponseIncludedItem
Get returns the associated value.
func (v NullableUserResponseIncludedItem) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUserResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUserResponseIncludedItem) Set(val *UserResponseIncludedItem)
Set changes the value and indicates it's been called.
func (v *NullableUserResponseIncludedItem) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUserResponseIncludedItem) Unset()
Unset sets the value to nil and resets the set flag/
NullableUsersType handles when a null is used for UsersType.
type NullableUsersType struct {
// contains filtered or unexported fields
}
func NewNullableUsersType(val *UsersType) *NullableUsersType
NewNullableUsersType initializes the struct as if Set has been called.
func (v NullableUsersType) Get() *UsersType
Get returns the associated value.
func (v NullableUsersType) IsSet() bool
IsSet returns whether Set has been called.
func (v NullableUsersType) MarshalJSON() ([]byte, error)
MarshalJSON serializes the associated value.
func (v *NullableUsersType) Set(val *UsersType)
Set changes the value and indicates it's been called.
func (v *NullableUsersType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the payload and sets the flag as if Set has been called.
func (v *NullableUsersType) Unset()
Unset sets the value to nil and resets the set flag.
OpsgenieIntegrationApi service type
type OpsgenieIntegrationApi datadog.Service
func NewOpsgenieIntegrationApi(client *datadog.APIClient) *OpsgenieIntegrationApi
NewOpsgenieIntegrationApi Returns NewOpsgenieIntegrationApi.
func (a *OpsgenieIntegrationApi) CreateOpsgenieService(ctx _context.Context, body OpsgenieServiceCreateRequest) (OpsgenieServiceResponse, *_nethttp.Response, error)
CreateOpsgenieService Create a new service object. Create a new service object in the Opsgenie integration.
func (a *OpsgenieIntegrationApi) DeleteOpsgenieService(ctx _context.Context, integrationServiceId string) (*_nethttp.Response, error)
DeleteOpsgenieService Delete a single service object. Delete a single service object in the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) GetOpsgenieService(ctx _context.Context, integrationServiceId string) (OpsgenieServiceResponse, *_nethttp.Response, error)
GetOpsgenieService Get a single service object. Get a single service from the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) ListOpsgenieServices(ctx _context.Context) (OpsgenieServicesResponse, *_nethttp.Response, error)
ListOpsgenieServices Get all service objects. Get a list of all services from the Datadog Opsgenie integration.
func (a *OpsgenieIntegrationApi) UpdateOpsgenieService(ctx _context.Context, integrationServiceId string, body OpsgenieServiceUpdateRequest) (OpsgenieServiceResponse, *_nethttp.Response, error)
UpdateOpsgenieService Update a single service object. Update a single service object in the Datadog Opsgenie integration.
OpsgenieServiceCreateAttributes The Opsgenie service attributes for a create request.
type OpsgenieServiceCreateAttributes struct {
// The custom URL for a custom region.
CustomUrl *string `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name string `json:"name"`
// The Opsgenie API key for your Opsgenie service.
OpsgenieApiKey string `json:"opsgenie_api_key"`
// The region for the Opsgenie service.
Region OpsgenieServiceRegionType `json:"region"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateAttributes(name string, opsgenieApiKey string, region OpsgenieServiceRegionType) *OpsgenieServiceCreateAttributes
NewOpsgenieServiceCreateAttributes instantiates a new OpsgenieServiceCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateAttributesWithDefaults() *OpsgenieServiceCreateAttributes
NewOpsgenieServiceCreateAttributesWithDefaults instantiates a new OpsgenieServiceCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise.
func (o *OpsgenieServiceCreateAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *OpsgenieServiceCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetOpsgenieApiKey() string
GetOpsgenieApiKey returns the OpsgenieApiKey field value.
func (o *OpsgenieServiceCreateAttributes) GetOpsgenieApiKeyOk() (*string, bool)
GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value.
func (o *OpsgenieServiceCreateAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o OpsgenieServiceCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given string and assigns it to the CustomUrl field.
func (o *OpsgenieServiceCreateAttributes) SetName(v string)
SetName sets field value.
func (o *OpsgenieServiceCreateAttributes) SetOpsgenieApiKey(v string)
SetOpsgenieApiKey sets field value.
func (o *OpsgenieServiceCreateAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion sets field value.
func (o *OpsgenieServiceCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceCreateData Opsgenie service data for a create request.
type OpsgenieServiceCreateData struct {
// The Opsgenie service attributes for a create request.
Attributes OpsgenieServiceCreateAttributes `json:"attributes"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateData(attributes OpsgenieServiceCreateAttributes, typeVar OpsgenieServiceType) *OpsgenieServiceCreateData
NewOpsgenieServiceCreateData instantiates a new OpsgenieServiceCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateDataWithDefaults() *OpsgenieServiceCreateData
NewOpsgenieServiceCreateDataWithDefaults instantiates a new OpsgenieServiceCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateData) GetAttributes() OpsgenieServiceCreateAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceCreateData) GetAttributesOk() (*OpsgenieServiceCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceCreateData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceCreateData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateData) SetAttributes(v OpsgenieServiceCreateAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceCreateData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceCreateRequest Create request for an Opsgenie service.
type OpsgenieServiceCreateRequest struct {
// Opsgenie service data for a create request.
Data OpsgenieServiceCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceCreateRequest(data OpsgenieServiceCreateData) *OpsgenieServiceCreateRequest
NewOpsgenieServiceCreateRequest instantiates a new OpsgenieServiceCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceCreateRequestWithDefaults() *OpsgenieServiceCreateRequest
NewOpsgenieServiceCreateRequestWithDefaults instantiates a new OpsgenieServiceCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceCreateRequest) GetData() OpsgenieServiceCreateData
GetData returns the Data field value.
func (o *OpsgenieServiceCreateRequest) GetDataOk() (*OpsgenieServiceCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceCreateRequest) SetData(v OpsgenieServiceCreateData)
SetData sets field value.
func (o *OpsgenieServiceCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceRegionType The region for the Opsgenie service.
type OpsgenieServiceRegionType string
List of OpsgenieServiceRegionType.
const (
OPSGENIESERVICEREGIONTYPE_US OpsgenieServiceRegionType = "us"
OPSGENIESERVICEREGIONTYPE_EU OpsgenieServiceRegionType = "eu"
OPSGENIESERVICEREGIONTYPE_CUSTOM OpsgenieServiceRegionType = "custom"
)
func NewOpsgenieServiceRegionTypeFromValue(v string) (*OpsgenieServiceRegionType, error)
NewOpsgenieServiceRegionTypeFromValue returns a pointer to a valid OpsgenieServiceRegionType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OpsgenieServiceRegionType) GetAllowedValues() []OpsgenieServiceRegionType
GetAllowedValues reeturns the list of possible values.
func (v OpsgenieServiceRegionType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OpsgenieServiceRegionType) Ptr() *OpsgenieServiceRegionType
Ptr returns reference to OpsgenieServiceRegionType value.
func (v *OpsgenieServiceRegionType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
OpsgenieServiceResponse Response of an Opsgenie service.
type OpsgenieServiceResponse struct {
// Opsgenie service data from a response.
Data OpsgenieServiceResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponse(data OpsgenieServiceResponseData) *OpsgenieServiceResponse
NewOpsgenieServiceResponse instantiates a new OpsgenieServiceResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseWithDefaults() *OpsgenieServiceResponse
NewOpsgenieServiceResponseWithDefaults instantiates a new OpsgenieServiceResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponse) GetData() OpsgenieServiceResponseData
GetData returns the Data field value.
func (o *OpsgenieServiceResponse) GetDataOk() (*OpsgenieServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponse) SetData(v OpsgenieServiceResponseData)
SetData sets field value.
func (o *OpsgenieServiceResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceResponseAttributes The attributes from an Opsgenie service response.
type OpsgenieServiceResponseAttributes struct {
// The custom URL for a custom region.
CustomUrl datadog.NullableString `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name *string `json:"name,omitempty"`
// The region for the Opsgenie service.
Region *OpsgenieServiceRegionType `json:"region,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponseAttributes() *OpsgenieServiceResponseAttributes
NewOpsgenieServiceResponseAttributes instantiates a new OpsgenieServiceResponseAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseAttributesWithDefaults() *OpsgenieServiceResponseAttributes
NewOpsgenieServiceResponseAttributesWithDefaults instantiates a new OpsgenieServiceResponseAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponseAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OpsgenieServiceResponseAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *OpsgenieServiceResponseAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OpsgenieServiceResponseAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value if set, zero value otherwise.
func (o *OpsgenieServiceResponseAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o *OpsgenieServiceResponseAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OpsgenieServiceResponseAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o OpsgenieServiceResponseAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponseAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given datadog.NullableString and assigns it to the CustomUrl field.
func (o *OpsgenieServiceResponseAttributes) SetCustomUrlNil()
SetCustomUrlNil sets the value for CustomUrl to be an explicit nil.
func (o *OpsgenieServiceResponseAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OpsgenieServiceResponseAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion gets a reference to the given OpsgenieServiceRegionType and assigns it to the Region field.
func (o *OpsgenieServiceResponseAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *OpsgenieServiceResponseAttributes) UnsetCustomUrl()
UnsetCustomUrl ensures that no value is present for CustomUrl, not even an explicit nil.
OpsgenieServiceResponseData Opsgenie service data from a response.
type OpsgenieServiceResponseData struct {
// The attributes from an Opsgenie service response.
Attributes OpsgenieServiceResponseAttributes `json:"attributes"`
// The ID of the Opsgenie service.
Id string `json:"id"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceResponseData(attributes OpsgenieServiceResponseAttributes, id string, typeVar OpsgenieServiceType) *OpsgenieServiceResponseData
NewOpsgenieServiceResponseData instantiates a new OpsgenieServiceResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceResponseDataWithDefaults() *OpsgenieServiceResponseData
NewOpsgenieServiceResponseDataWithDefaults instantiates a new OpsgenieServiceResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceResponseData) GetAttributes() OpsgenieServiceResponseAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceResponseData) GetAttributesOk() (*OpsgenieServiceResponseAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseData) GetId() string
GetId returns the Id field value.
func (o *OpsgenieServiceResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceResponseData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceResponseData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceResponseData) SetAttributes(v OpsgenieServiceResponseAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceResponseData) SetId(v string)
SetId sets field value.
func (o *OpsgenieServiceResponseData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceType Opsgenie service resource type.
type OpsgenieServiceType string
List of OpsgenieServiceType.
const (
OPSGENIESERVICETYPE_OPSGENIE_SERVICE OpsgenieServiceType = "opsgenie-service"
)
func NewOpsgenieServiceTypeFromValue(v string) (*OpsgenieServiceType, error)
NewOpsgenieServiceTypeFromValue returns a pointer to a valid OpsgenieServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OpsgenieServiceType) GetAllowedValues() []OpsgenieServiceType
GetAllowedValues reeturns the list of possible values.
func (v OpsgenieServiceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OpsgenieServiceType) Ptr() *OpsgenieServiceType
Ptr returns reference to OpsgenieServiceType value.
func (v *OpsgenieServiceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
OpsgenieServiceUpdateAttributes The Opsgenie service attributes for an update request.
type OpsgenieServiceUpdateAttributes struct {
// The custom URL for a custom region.
CustomUrl datadog.NullableString `json:"custom_url,omitempty"`
// The name for the Opsgenie service.
Name *string `json:"name,omitempty"`
// The Opsgenie API key for your Opsgenie service.
OpsgenieApiKey *string `json:"opsgenie_api_key,omitempty"`
// The region for the Opsgenie service.
Region *OpsgenieServiceRegionType `json:"region,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateAttributes() *OpsgenieServiceUpdateAttributes
NewOpsgenieServiceUpdateAttributes instantiates a new OpsgenieServiceUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateAttributesWithDefaults() *OpsgenieServiceUpdateAttributes
NewOpsgenieServiceUpdateAttributesWithDefaults instantiates a new OpsgenieServiceUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateAttributes) GetCustomUrl() string
GetCustomUrl returns the CustomUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OpsgenieServiceUpdateAttributes) GetCustomUrlOk() (*string, bool)
GetCustomUrlOk returns a tuple with the CustomUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *OpsgenieServiceUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) GetOpsgenieApiKey() string
GetOpsgenieApiKey returns the OpsgenieApiKey field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetOpsgenieApiKeyOk() (*string, bool)
GetOpsgenieApiKeyOk returns a tuple with the OpsgenieApiKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) GetRegion() OpsgenieServiceRegionType
GetRegion returns the Region field value if set, zero value otherwise.
func (o *OpsgenieServiceUpdateAttributes) GetRegionOk() (*OpsgenieServiceRegionType, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateAttributes) HasCustomUrl() bool
HasCustomUrl returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasOpsgenieApiKey() bool
HasOpsgenieApiKey returns a boolean if a field has been set.
func (o *OpsgenieServiceUpdateAttributes) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o OpsgenieServiceUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateAttributes) SetCustomUrl(v string)
SetCustomUrl gets a reference to the given datadog.NullableString and assigns it to the CustomUrl field.
func (o *OpsgenieServiceUpdateAttributes) SetCustomUrlNil()
SetCustomUrlNil sets the value for CustomUrl to be an explicit nil.
func (o *OpsgenieServiceUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OpsgenieServiceUpdateAttributes) SetOpsgenieApiKey(v string)
SetOpsgenieApiKey gets a reference to the given string and assigns it to the OpsgenieApiKey field.
func (o *OpsgenieServiceUpdateAttributes) SetRegion(v OpsgenieServiceRegionType)
SetRegion gets a reference to the given OpsgenieServiceRegionType and assigns it to the Region field.
func (o *OpsgenieServiceUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *OpsgenieServiceUpdateAttributes) UnsetCustomUrl()
UnsetCustomUrl ensures that no value is present for CustomUrl, not even an explicit nil.
OpsgenieServiceUpdateData Opsgenie service for an update request.
type OpsgenieServiceUpdateData struct {
// The Opsgenie service attributes for an update request.
Attributes OpsgenieServiceUpdateAttributes `json:"attributes"`
// The ID of the Opsgenie service.
Id string `json:"id"`
// Opsgenie service resource type.
Type OpsgenieServiceType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateData(attributes OpsgenieServiceUpdateAttributes, id string, typeVar OpsgenieServiceType) *OpsgenieServiceUpdateData
NewOpsgenieServiceUpdateData instantiates a new OpsgenieServiceUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateDataWithDefaults() *OpsgenieServiceUpdateData
NewOpsgenieServiceUpdateDataWithDefaults instantiates a new OpsgenieServiceUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateData) GetAttributes() OpsgenieServiceUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *OpsgenieServiceUpdateData) GetAttributesOk() (*OpsgenieServiceUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateData) GetId() string
GetId returns the Id field value.
func (o *OpsgenieServiceUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *OpsgenieServiceUpdateData) GetType() OpsgenieServiceType
GetType returns the Type field value.
func (o *OpsgenieServiceUpdateData) GetTypeOk() (*OpsgenieServiceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o OpsgenieServiceUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateData) SetAttributes(v OpsgenieServiceUpdateAttributes)
SetAttributes sets field value.
func (o *OpsgenieServiceUpdateData) SetId(v string)
SetId sets field value.
func (o *OpsgenieServiceUpdateData) SetType(v OpsgenieServiceType)
SetType sets field value.
func (o *OpsgenieServiceUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServiceUpdateRequest Update request for an Opsgenie service.
type OpsgenieServiceUpdateRequest struct {
// Opsgenie service for an update request.
Data OpsgenieServiceUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServiceUpdateRequest(data OpsgenieServiceUpdateData) *OpsgenieServiceUpdateRequest
NewOpsgenieServiceUpdateRequest instantiates a new OpsgenieServiceUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServiceUpdateRequestWithDefaults() *OpsgenieServiceUpdateRequest
NewOpsgenieServiceUpdateRequestWithDefaults instantiates a new OpsgenieServiceUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServiceUpdateRequest) GetData() OpsgenieServiceUpdateData
GetData returns the Data field value.
func (o *OpsgenieServiceUpdateRequest) GetDataOk() (*OpsgenieServiceUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServiceUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServiceUpdateRequest) SetData(v OpsgenieServiceUpdateData)
SetData sets field value.
func (o *OpsgenieServiceUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OpsgenieServicesResponse Response with a list of Opsgenie services.
type OpsgenieServicesResponse struct {
// An array of Opsgenie services.
Data []OpsgenieServiceResponseData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOpsgenieServicesResponse(data []OpsgenieServiceResponseData) *OpsgenieServicesResponse
NewOpsgenieServicesResponse instantiates a new OpsgenieServicesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOpsgenieServicesResponseWithDefaults() *OpsgenieServicesResponse
NewOpsgenieServicesResponseWithDefaults instantiates a new OpsgenieServicesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OpsgenieServicesResponse) GetData() []OpsgenieServiceResponseData
GetData returns the Data field value.
func (o *OpsgenieServicesResponse) GetDataOk() (*[]OpsgenieServiceResponseData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o OpsgenieServicesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OpsgenieServicesResponse) SetData(v []OpsgenieServiceResponseData)
SetData sets field value.
func (o *OpsgenieServicesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Organization Organization object.
type Organization struct {
// Attributes of the organization.
Attributes *OrganizationAttributes `json:"attributes,omitempty"`
// ID of the organization.
Id *string `json:"id,omitempty"`
// Organizations resource type.
Type OrganizationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOrganization(typeVar OrganizationsType) *Organization
NewOrganization instantiates a new Organization object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOrganizationWithDefaults() *Organization
NewOrganizationWithDefaults instantiates a new Organization object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Organization) GetAttributes() OrganizationAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Organization) GetAttributesOk() (*OrganizationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Organization) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Organization) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Organization) GetType() OrganizationsType
GetType returns the Type field value.
func (o *Organization) GetTypeOk() (*OrganizationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Organization) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Organization) HasId() bool
HasId returns a boolean if a field has been set.
func (o Organization) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Organization) SetAttributes(v OrganizationAttributes)
SetAttributes gets a reference to the given OrganizationAttributes and assigns it to the Attributes field.
func (o *Organization) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Organization) SetType(v OrganizationsType)
SetType sets field value.
func (o *Organization) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OrganizationAttributes Attributes of the organization.
type OrganizationAttributes struct {
// Creation time of the organization.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Description of the organization.
Description *string `json:"description,omitempty"`
// Whether or not the organization is disabled.
Disabled *bool `json:"disabled,omitempty"`
// Time of last organization modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the organization.
Name *string `json:"name,omitempty"`
// Public ID of the organization.
PublicId *string `json:"public_id,omitempty"`
// Sharing type of the organization.
Sharing *string `json:"sharing,omitempty"`
// URL of the site that this organization exists at.
Url *string `json:"url,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewOrganizationAttributes() *OrganizationAttributes
NewOrganizationAttributes instantiates a new OrganizationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewOrganizationAttributesWithDefaults() *OrganizationAttributes
NewOrganizationAttributesWithDefaults instantiates a new OrganizationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *OrganizationAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetSharing() string
GetSharing returns the Sharing field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetSharingOk() (*string, bool)
GetSharingOk returns a tuple with the Sharing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) GetUrl() string
GetUrl returns the Url field value if set, zero value otherwise.
func (o *OrganizationAttributes) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *OrganizationAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasSharing() bool
HasSharing returns a boolean if a field has been set.
func (o *OrganizationAttributes) HasUrl() bool
HasUrl returns a boolean if a field has been set.
func (o OrganizationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *OrganizationAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *OrganizationAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *OrganizationAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *OrganizationAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *OrganizationAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *OrganizationAttributes) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *OrganizationAttributes) SetSharing(v string)
SetSharing gets a reference to the given string and assigns it to the Sharing field.
func (o *OrganizationAttributes) SetUrl(v string)
SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *OrganizationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
OrganizationsApi service type
type OrganizationsApi datadog.Service
func NewOrganizationsApi(client *datadog.APIClient) *OrganizationsApi
NewOrganizationsApi Returns NewOrganizationsApi.
func (a *OrganizationsApi) UploadIdPMetadata(ctx _context.Context, o ...UploadIdPMetadataOptionalParameters) (*_nethttp.Response, error)
UploadIdPMetadata Upload IdP metadata. Endpoint for uploading IdP metadata for SAML setup.
Use this endpoint to upload or replace IdP metadata for SAML login configuration.
OrganizationsType Organizations resource type.
type OrganizationsType string
List of OrganizationsType.
const (
ORGANIZATIONSTYPE_ORGS OrganizationsType = "orgs"
)
func NewOrganizationsTypeFromValue(v string) (*OrganizationsType, error)
NewOrganizationsTypeFromValue returns a pointer to a valid OrganizationsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *OrganizationsType) GetAllowedValues() []OrganizationsType
GetAllowedValues reeturns the list of possible values.
func (v OrganizationsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v OrganizationsType) Ptr() *OrganizationsType
Ptr returns reference to OrganizationsType value.
func (v *OrganizationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
Pagination Pagination object.
type Pagination struct {
// Total count.
TotalCount *int64 `json:"total_count,omitempty"`
// Total count of elements matched by the filter.
TotalFilteredCount *int64 `json:"total_filtered_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPagination() *Pagination
NewPagination instantiates a new Pagination object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPaginationWithDefaults() *Pagination
NewPaginationWithDefaults instantiates a new Pagination object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Pagination) GetTotalCount() int64
GetTotalCount returns the TotalCount field value if set, zero value otherwise.
func (o *Pagination) GetTotalCountOk() (*int64, bool)
GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Pagination) GetTotalFilteredCount() int64
GetTotalFilteredCount returns the TotalFilteredCount field value if set, zero value otherwise.
func (o *Pagination) GetTotalFilteredCountOk() (*int64, bool)
GetTotalFilteredCountOk returns a tuple with the TotalFilteredCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Pagination) HasTotalCount() bool
HasTotalCount returns a boolean if a field has been set.
func (o *Pagination) HasTotalFilteredCount() bool
HasTotalFilteredCount returns a boolean if a field has been set.
func (o Pagination) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Pagination) SetTotalCount(v int64)
SetTotalCount gets a reference to the given int64 and assigns it to the TotalCount field.
func (o *Pagination) SetTotalFilteredCount(v int64)
SetTotalFilteredCount gets a reference to the given int64 and assigns it to the TotalFilteredCount field.
func (o *Pagination) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialAPIKey Partial Datadog API key.
type PartialAPIKey struct {
// Attributes of a partial API key.
Attributes *PartialAPIKeyAttributes `json:"attributes,omitempty"`
// ID of the API key.
Id *string `json:"id,omitempty"`
// Resources related to the API key.
Relationships *APIKeyRelationships `json:"relationships,omitempty"`
// API Keys resource type.
Type *APIKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialAPIKey() *PartialAPIKey
NewPartialAPIKey instantiates a new PartialAPIKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialAPIKeyWithDefaults() *PartialAPIKey
NewPartialAPIKeyWithDefaults instantiates a new PartialAPIKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialAPIKey) GetAttributes() PartialAPIKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *PartialAPIKey) GetAttributesOk() (*PartialAPIKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *PartialAPIKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetRelationships() APIKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *PartialAPIKey) GetRelationshipsOk() (*APIKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) GetType() APIKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *PartialAPIKey) GetTypeOk() (*APIKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *PartialAPIKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *PartialAPIKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *PartialAPIKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o PartialAPIKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialAPIKey) SetAttributes(v PartialAPIKeyAttributes)
SetAttributes gets a reference to the given PartialAPIKeyAttributes and assigns it to the Attributes field.
func (o *PartialAPIKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *PartialAPIKey) SetRelationships(v APIKeyRelationships)
SetRelationships gets a reference to the given APIKeyRelationships and assigns it to the Relationships field.
func (o *PartialAPIKey) SetType(v APIKeysType)
SetType gets a reference to the given APIKeysType and assigns it to the Type field.
func (o *PartialAPIKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialAPIKeyAttributes Attributes of a partial API key.
type PartialAPIKeyAttributes struct {
// Creation date of the API key.
CreatedAt *string `json:"created_at,omitempty"`
// The last four characters of the API key.
Last4 *string `json:"last4,omitempty"`
// Date the API key was last modified.
ModifiedAt *string `json:"modified_at,omitempty"`
// Name of the API key.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialAPIKeyAttributes() *PartialAPIKeyAttributes
NewPartialAPIKeyAttributes instantiates a new PartialAPIKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialAPIKeyAttributesWithDefaults() *PartialAPIKeyAttributes
NewPartialAPIKeyAttributesWithDefaults instantiates a new PartialAPIKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialAPIKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetModifiedAt() string
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetModifiedAtOk() (*string, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PartialAPIKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialAPIKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *PartialAPIKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o PartialAPIKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialAPIKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *PartialAPIKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *PartialAPIKeyAttributes) SetModifiedAt(v string)
SetModifiedAt gets a reference to the given string and assigns it to the ModifiedAt field.
func (o *PartialAPIKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PartialAPIKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialApplicationKey Partial Datadog application key.
type PartialApplicationKey struct {
// Attributes of a partial application key.
Attributes *PartialApplicationKeyAttributes `json:"attributes,omitempty"`
// ID of the application key.
Id *string `json:"id,omitempty"`
// Resources related to the application key.
Relationships *ApplicationKeyRelationships `json:"relationships,omitempty"`
// Application Keys resource type.
Type *ApplicationKeysType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKey() *PartialApplicationKey
NewPartialApplicationKey instantiates a new PartialApplicationKey object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyWithDefaults() *PartialApplicationKey
NewPartialApplicationKeyWithDefaults instantiates a new PartialApplicationKey object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKey) GetAttributes() PartialApplicationKeyAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetAttributesOk() (*PartialApplicationKeyAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetRelationships() ApplicationKeyRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetRelationshipsOk() (*ApplicationKeyRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) GetType() ApplicationKeysType
GetType returns the Type field value if set, zero value otherwise.
func (o *PartialApplicationKey) GetTypeOk() (*ApplicationKeysType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKey) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasId() bool
HasId returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *PartialApplicationKey) HasType() bool
HasType returns a boolean if a field has been set.
func (o PartialApplicationKey) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKey) SetAttributes(v PartialApplicationKeyAttributes)
SetAttributes gets a reference to the given PartialApplicationKeyAttributes and assigns it to the Attributes field.
func (o *PartialApplicationKey) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *PartialApplicationKey) SetRelationships(v ApplicationKeyRelationships)
SetRelationships gets a reference to the given ApplicationKeyRelationships and assigns it to the Relationships field.
func (o *PartialApplicationKey) SetType(v ApplicationKeysType)
SetType gets a reference to the given ApplicationKeysType and assigns it to the Type field.
func (o *PartialApplicationKey) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialApplicationKeyAttributes Attributes of a partial application key.
type PartialApplicationKeyAttributes struct {
// Creation date of the application key.
CreatedAt *string `json:"created_at,omitempty"`
// The last four characters of the application key.
Last4 *string `json:"last4,omitempty"`
// Name of the application key.
Name *string `json:"name,omitempty"`
// Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys.
Scopes []string `json:"scopes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKeyAttributes() *PartialApplicationKeyAttributes
NewPartialApplicationKeyAttributes instantiates a new PartialApplicationKeyAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyAttributesWithDefaults() *PartialApplicationKeyAttributes
NewPartialApplicationKeyAttributesWithDefaults instantiates a new PartialApplicationKeyAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKeyAttributes) GetCreatedAt() string
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetCreatedAtOk() (*string, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetLast4() string
GetLast4 returns the Last4 field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetLast4Ok() (*string, bool)
GetLast4Ok returns a tuple with the Last4 field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PartialApplicationKeyAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyAttributes) GetScopes() []string
GetScopes returns the Scopes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PartialApplicationKeyAttributes) GetScopesOk() (*[]string, bool)
GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *PartialApplicationKeyAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasLast4() bool
HasLast4 returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PartialApplicationKeyAttributes) HasScopes() bool
HasScopes returns a boolean if a field has been set.
func (o PartialApplicationKeyAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKeyAttributes) SetCreatedAt(v string)
SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
func (o *PartialApplicationKeyAttributes) SetLast4(v string)
SetLast4 gets a reference to the given string and assigns it to the Last4 field.
func (o *PartialApplicationKeyAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PartialApplicationKeyAttributes) SetScopes(v []string)
SetScopes gets a reference to the given []string and assigns it to the Scopes field.
func (o *PartialApplicationKeyAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PartialApplicationKeyResponse Response for retrieving a partial application key.
type PartialApplicationKeyResponse struct {
// Partial Datadog application key.
Data *PartialApplicationKey `json:"data,omitempty"`
// Array of objects related to the application key.
Included []ApplicationKeyResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPartialApplicationKeyResponse() *PartialApplicationKeyResponse
NewPartialApplicationKeyResponse instantiates a new PartialApplicationKeyResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPartialApplicationKeyResponseWithDefaults() *PartialApplicationKeyResponse
NewPartialApplicationKeyResponseWithDefaults instantiates a new PartialApplicationKeyResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PartialApplicationKeyResponse) GetData() PartialApplicationKey
GetData returns the Data field value if set, zero value otherwise.
func (o *PartialApplicationKeyResponse) GetDataOk() (*PartialApplicationKey, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyResponse) GetIncluded() []ApplicationKeyResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *PartialApplicationKeyResponse) GetIncludedOk() (*[]ApplicationKeyResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PartialApplicationKeyResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *PartialApplicationKeyResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o PartialApplicationKeyResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PartialApplicationKeyResponse) SetData(v PartialApplicationKey)
SetData gets a reference to the given PartialApplicationKey and assigns it to the Data field.
func (o *PartialApplicationKeyResponse) SetIncluded(v []ApplicationKeyResponseIncludedItem)
SetIncluded gets a reference to the given []ApplicationKeyResponseIncludedItem and assigns it to the Included field.
func (o *PartialApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Permission Permission object.
type Permission struct {
// Attributes of a permission.
Attributes *PermissionAttributes `json:"attributes,omitempty"`
// ID of the permission.
Id *string `json:"id,omitempty"`
// Permissions resource type.
Type PermissionsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermission(typeVar PermissionsType) *Permission
NewPermission instantiates a new Permission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionWithDefaults() *Permission
NewPermissionWithDefaults instantiates a new Permission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Permission) GetAttributes() PermissionAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Permission) GetAttributesOk() (*PermissionAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Permission) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Permission) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Permission) GetType() PermissionsType
GetType returns the Type field value.
func (o *Permission) GetTypeOk() (*PermissionsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Permission) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Permission) HasId() bool
HasId returns a boolean if a field has been set.
func (o Permission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Permission) SetAttributes(v PermissionAttributes)
SetAttributes gets a reference to the given PermissionAttributes and assigns it to the Attributes field.
func (o *Permission) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Permission) SetType(v PermissionsType)
SetType sets field value.
func (o *Permission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionAttributes Attributes of a permission.
type PermissionAttributes struct {
// Creation time of the permission.
Created *time.Time `json:"created,omitempty"`
// Description of the permission.
Description *string `json:"description,omitempty"`
// Displayed name for the permission.
DisplayName *string `json:"display_name,omitempty"`
// Display type.
DisplayType *string `json:"display_type,omitempty"`
// Name of the permission group.
GroupName *string `json:"group_name,omitempty"`
// Name of the permission.
Name *string `json:"name,omitempty"`
// Whether or not the permission is restricted.
Restricted *bool `json:"restricted,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermissionAttributes() *PermissionAttributes
NewPermissionAttributes instantiates a new PermissionAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionAttributesWithDefaults() *PermissionAttributes
NewPermissionAttributesWithDefaults instantiates a new PermissionAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PermissionAttributes) GetCreated() time.Time
GetCreated returns the Created field value if set, zero value otherwise.
func (o *PermissionAttributes) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetDisplayType() string
GetDisplayType returns the DisplayType field value if set, zero value otherwise.
func (o *PermissionAttributes) GetDisplayTypeOk() (*string, bool)
GetDisplayTypeOk returns a tuple with the DisplayType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetGroupName() string
GetGroupName returns the GroupName field value if set, zero value otherwise.
func (o *PermissionAttributes) GetGroupNameOk() (*string, bool)
GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *PermissionAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) GetRestricted() bool
GetRestricted returns the Restricted field value if set, zero value otherwise.
func (o *PermissionAttributes) GetRestrictedOk() (*bool, bool)
GetRestrictedOk returns a tuple with the Restricted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionAttributes) HasCreated() bool
HasCreated returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasDisplayType() bool
HasDisplayType returns a boolean if a field has been set.
func (o *PermissionAttributes) HasGroupName() bool
HasGroupName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PermissionAttributes) HasRestricted() bool
HasRestricted returns a boolean if a field has been set.
func (o PermissionAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PermissionAttributes) SetCreated(v time.Time)
SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *PermissionAttributes) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *PermissionAttributes) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *PermissionAttributes) SetDisplayType(v string)
SetDisplayType gets a reference to the given string and assigns it to the DisplayType field.
func (o *PermissionAttributes) SetGroupName(v string)
SetGroupName gets a reference to the given string and assigns it to the GroupName field.
func (o *PermissionAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PermissionAttributes) SetRestricted(v bool)
SetRestricted gets a reference to the given bool and assigns it to the Restricted field.
func (o *PermissionAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionsResponse Payload with API-returned permissions.
type PermissionsResponse struct {
// Array of permissions.
Data []Permission `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewPermissionsResponse() *PermissionsResponse
NewPermissionsResponse instantiates a new PermissionsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewPermissionsResponseWithDefaults() *PermissionsResponse
NewPermissionsResponseWithDefaults instantiates a new PermissionsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *PermissionsResponse) GetData() []Permission
GetData returns the Data field value if set, zero value otherwise.
func (o *PermissionsResponse) GetDataOk() (*[]Permission, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *PermissionsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o PermissionsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *PermissionsResponse) SetData(v []Permission)
SetData gets a reference to the given []Permission and assigns it to the Data field.
func (o *PermissionsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
PermissionsType Permissions resource type.
type PermissionsType string
List of PermissionsType.
const (
PERMISSIONSTYPE_PERMISSIONS PermissionsType = "permissions"
)
func NewPermissionsTypeFromValue(v string) (*PermissionsType, error)
NewPermissionsTypeFromValue returns a pointer to a valid PermissionsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *PermissionsType) GetAllowedValues() []PermissionsType
GetAllowedValues reeturns the list of possible values.
func (v PermissionsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v PermissionsType) Ptr() *PermissionsType
Ptr returns reference to PermissionsType value.
func (v *PermissionsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ProcessSummariesMeta Response metadata object.
type ProcessSummariesMeta struct {
// Paging attributes.
Page *ProcessSummariesMetaPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesMeta() *ProcessSummariesMeta
NewProcessSummariesMeta instantiates a new ProcessSummariesMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesMetaWithDefaults() *ProcessSummariesMeta
NewProcessSummariesMetaWithDefaults instantiates a new ProcessSummariesMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesMeta) GetPage() ProcessSummariesMetaPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *ProcessSummariesMeta) GetPageOk() (*ProcessSummariesMetaPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o ProcessSummariesMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesMeta) SetPage(v ProcessSummariesMetaPage)
SetPage gets a reference to the given ProcessSummariesMetaPage and assigns it to the Page field.
func (o *ProcessSummariesMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummariesMetaPage Paging attributes.
type ProcessSummariesMetaPage struct {
// The cursor used to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// Number of results returned.
Size *int32 `json:"size,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesMetaPage() *ProcessSummariesMetaPage
NewProcessSummariesMetaPage instantiates a new ProcessSummariesMetaPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesMetaPageWithDefaults() *ProcessSummariesMetaPage
NewProcessSummariesMetaPageWithDefaults instantiates a new ProcessSummariesMetaPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesMetaPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *ProcessSummariesMetaPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMetaPage) GetSize() int32
GetSize returns the Size field value if set, zero value otherwise.
func (o *ProcessSummariesMetaPage) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesMetaPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o *ProcessSummariesMetaPage) HasSize() bool
HasSize returns a boolean if a field has been set.
func (o ProcessSummariesMetaPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesMetaPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *ProcessSummariesMetaPage) SetSize(v int32)
SetSize gets a reference to the given int32 and assigns it to the Size field.
func (o *ProcessSummariesMetaPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummariesResponse List of process summaries.
type ProcessSummariesResponse struct {
// Array of process summary objects.
Data []ProcessSummary `json:"data,omitempty"`
// Response metadata object.
Meta *ProcessSummariesMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummariesResponse() *ProcessSummariesResponse
NewProcessSummariesResponse instantiates a new ProcessSummariesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummariesResponseWithDefaults() *ProcessSummariesResponse
NewProcessSummariesResponseWithDefaults instantiates a new ProcessSummariesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummariesResponse) GetData() []ProcessSummary
GetData returns the Data field value if set, zero value otherwise.
func (o *ProcessSummariesResponse) GetDataOk() (*[]ProcessSummary, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesResponse) GetMeta() ProcessSummariesMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *ProcessSummariesResponse) GetMetaOk() (*ProcessSummariesMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummariesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *ProcessSummariesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o ProcessSummariesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummariesResponse) SetData(v []ProcessSummary)
SetData gets a reference to the given []ProcessSummary and assigns it to the Data field.
func (o *ProcessSummariesResponse) SetMeta(v ProcessSummariesMeta)
SetMeta gets a reference to the given ProcessSummariesMeta and assigns it to the Meta field.
func (o *ProcessSummariesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummary Process summary object.
type ProcessSummary struct {
// Attributes for a process summary.
Attributes *ProcessSummaryAttributes `json:"attributes,omitempty"`
// Process ID.
Id *string `json:"id,omitempty"`
// Type of process summary.
Type *ProcessSummaryType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummary() *ProcessSummary
NewProcessSummary instantiates a new ProcessSummary object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummaryWithDefaults() *ProcessSummary
NewProcessSummaryWithDefaults instantiates a new ProcessSummary object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummary) GetAttributes() ProcessSummaryAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ProcessSummary) GetAttributesOk() (*ProcessSummaryAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *ProcessSummary) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) GetType() ProcessSummaryType
GetType returns the Type field value if set, zero value otherwise.
func (o *ProcessSummary) GetTypeOk() (*ProcessSummaryType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummary) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *ProcessSummary) HasId() bool
HasId returns a boolean if a field has been set.
func (o *ProcessSummary) HasType() bool
HasType returns a boolean if a field has been set.
func (o ProcessSummary) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummary) SetAttributes(v ProcessSummaryAttributes)
SetAttributes gets a reference to the given ProcessSummaryAttributes and assigns it to the Attributes field.
func (o *ProcessSummary) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *ProcessSummary) SetType(v ProcessSummaryType)
SetType gets a reference to the given ProcessSummaryType and assigns it to the Type field.
func (o *ProcessSummary) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummaryAttributes Attributes for a process summary.
type ProcessSummaryAttributes struct {
// Process command line.
Cmdline *string `json:"cmdline,omitempty"`
// Host running the process.
Host *string `json:"host,omitempty"`
// Process ID.
Pid *int64 `json:"pid,omitempty"`
// Parent process ID.
Ppid *int64 `json:"ppid,omitempty"`
// Time the process was started.
Start *string `json:"start,omitempty"`
// List of tags associated with the process.
Tags []string `json:"tags,omitempty"`
// Time the process was seen.
Timestamp *string `json:"timestamp,omitempty"`
// Process owner.
User *string `json:"user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewProcessSummaryAttributes() *ProcessSummaryAttributes
NewProcessSummaryAttributes instantiates a new ProcessSummaryAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewProcessSummaryAttributesWithDefaults() *ProcessSummaryAttributes
NewProcessSummaryAttributesWithDefaults instantiates a new ProcessSummaryAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ProcessSummaryAttributes) GetCmdline() string
GetCmdline returns the Cmdline field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetCmdlineOk() (*string, bool)
GetCmdlineOk returns a tuple with the Cmdline field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetHost() string
GetHost returns the Host field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetHostOk() (*string, bool)
GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetPid() int64
GetPid returns the Pid field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetPidOk() (*int64, bool)
GetPidOk returns a tuple with the Pid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetPpid() int64
GetPpid returns the Ppid field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetPpidOk() (*int64, bool)
GetPpidOk returns a tuple with the Ppid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetStart() string
GetStart returns the Start field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetStartOk() (*string, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetTimestamp() string
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetTimestampOk() (*string, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) GetUser() string
GetUser returns the User field value if set, zero value otherwise.
func (o *ProcessSummaryAttributes) GetUserOk() (*string, bool)
GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ProcessSummaryAttributes) HasCmdline() bool
HasCmdline returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasHost() bool
HasHost returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasPid() bool
HasPid returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasPpid() bool
HasPpid returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasStart() bool
HasStart returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *ProcessSummaryAttributes) HasUser() bool
HasUser returns a boolean if a field has been set.
func (o ProcessSummaryAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ProcessSummaryAttributes) SetCmdline(v string)
SetCmdline gets a reference to the given string and assigns it to the Cmdline field.
func (o *ProcessSummaryAttributes) SetHost(v string)
SetHost gets a reference to the given string and assigns it to the Host field.
func (o *ProcessSummaryAttributes) SetPid(v int64)
SetPid gets a reference to the given int64 and assigns it to the Pid field.
func (o *ProcessSummaryAttributes) SetPpid(v int64)
SetPpid gets a reference to the given int64 and assigns it to the Ppid field.
func (o *ProcessSummaryAttributes) SetStart(v string)
SetStart gets a reference to the given string and assigns it to the Start field.
func (o *ProcessSummaryAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ProcessSummaryAttributes) SetTimestamp(v string)
SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
func (o *ProcessSummaryAttributes) SetUser(v string)
SetUser gets a reference to the given string and assigns it to the User field.
func (o *ProcessSummaryAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ProcessSummaryType Type of process summary.
type ProcessSummaryType string
List of ProcessSummaryType.
const (
PROCESSSUMMARYTYPE_PROCESS ProcessSummaryType = "process"
)
func NewProcessSummaryTypeFromValue(v string) (*ProcessSummaryType, error)
NewProcessSummaryTypeFromValue returns a pointer to a valid ProcessSummaryType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ProcessSummaryType) GetAllowedValues() []ProcessSummaryType
GetAllowedValues reeturns the list of possible values.
func (v ProcessSummaryType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ProcessSummaryType) Ptr() *ProcessSummaryType
Ptr returns reference to ProcessSummaryType value.
func (v *ProcessSummaryType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ProcessesApi service type
type ProcessesApi datadog.Service
func NewProcessesApi(client *datadog.APIClient) *ProcessesApi
NewProcessesApi Returns NewProcessesApi.
func (a *ProcessesApi) ListProcesses(ctx _context.Context, o ...ListProcessesOptionalParameters) (ProcessSummariesResponse, *_nethttp.Response, error)
ListProcesses Get all processes. Get all processes for your organization.
func (a *ProcessesApi) ListProcessesWithPagination(ctx _context.Context, o ...ListProcessesOptionalParameters) (<-chan ProcessSummary, func(), error)
ListProcessesWithPagination provides a paginated version of ListProcesses returning a channel with all items.
QuerySortOrder Direction of sort.
type QuerySortOrder string
List of QuerySortOrder.
const (
QUERYSORTORDER_ASC QuerySortOrder = "asc"
QUERYSORTORDER_DESC QuerySortOrder = "desc"
)
func NewQuerySortOrderFromValue(v string) (*QuerySortOrder, error)
NewQuerySortOrderFromValue returns a pointer to a valid QuerySortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *QuerySortOrder) GetAllowedValues() []QuerySortOrder
GetAllowedValues reeturns the list of possible values.
func (v QuerySortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v QuerySortOrder) Ptr() *QuerySortOrder
Ptr returns reference to QuerySortOrder value.
func (v *QuerySortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAggregateBucketValue - A bucket value, can be either a timeseries or a single value.
type RUMAggregateBucketValue struct {
RUMAggregateBucketValueSingleString *string
RUMAggregateBucketValueSingleNumber *float64
RUMAggregateBucketValueTimeseries *RUMAggregateBucketValueTimeseries
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMAggregateBucketValueSingleNumberAsRUMAggregateBucketValue(v *float64) RUMAggregateBucketValue
RUMAggregateBucketValueSingleNumberAsRUMAggregateBucketValue is a convenience function that returns float64 wrapped in RUMAggregateBucketValue.
func RUMAggregateBucketValueSingleStringAsRUMAggregateBucketValue(v *string) RUMAggregateBucketValue
RUMAggregateBucketValueSingleStringAsRUMAggregateBucketValue is a convenience function that returns string wrapped in RUMAggregateBucketValue.
func RUMAggregateBucketValueTimeseriesAsRUMAggregateBucketValue(v *RUMAggregateBucketValueTimeseries) RUMAggregateBucketValue
RUMAggregateBucketValueTimeseriesAsRUMAggregateBucketValue is a convenience function that returns RUMAggregateBucketValueTimeseries wrapped in RUMAggregateBucketValue.
func (obj *RUMAggregateBucketValue) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMAggregateBucketValue) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMAggregateBucketValue) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMAggregateBucketValueTimeseries A timeseries array.
type RUMAggregateBucketValueTimeseries struct {
Items []RUMAggregateBucketValueTimeseriesPoint
// UnparsedObject contains the raw value of the array if there was an error when deserializing into the struct
UnparsedObject []interface{} `json:"-"`
}
func NewRUMAggregateBucketValueTimeseries() *RUMAggregateBucketValueTimeseries
NewRUMAggregateBucketValueTimeseries instantiates a new RUMAggregateBucketValueTimeseries object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateBucketValueTimeseriesWithDefaults() *RUMAggregateBucketValueTimeseries
NewRUMAggregateBucketValueTimeseriesWithDefaults instantiates a new RUMAggregateBucketValueTimeseries object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o RUMAggregateBucketValueTimeseries) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateBucketValueTimeseries) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateBucketValueTimeseriesPoint A timeseries point.
type RUMAggregateBucketValueTimeseriesPoint struct {
// The time value for this point.
Time *time.Time `json:"time,omitempty"`
// The value for this point.
Value *float64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateBucketValueTimeseriesPoint() *RUMAggregateBucketValueTimeseriesPoint
NewRUMAggregateBucketValueTimeseriesPoint instantiates a new RUMAggregateBucketValueTimeseriesPoint object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateBucketValueTimeseriesPointWithDefaults() *RUMAggregateBucketValueTimeseriesPoint
NewRUMAggregateBucketValueTimeseriesPointWithDefaults instantiates a new RUMAggregateBucketValueTimeseriesPoint object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetTime() time.Time
GetTime returns the Time field value if set, zero value otherwise.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetTimeOk() (*time.Time, bool)
GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetValue() float64
GetValue returns the Value field value if set, zero value otherwise.
func (o *RUMAggregateBucketValueTimeseriesPoint) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *RUMAggregateBucketValueTimeseriesPoint) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o RUMAggregateBucketValueTimeseriesPoint) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateBucketValueTimeseriesPoint) SetTime(v time.Time)
SetTime gets a reference to the given time.Time and assigns it to the Time field.
func (o *RUMAggregateBucketValueTimeseriesPoint) SetValue(v float64)
SetValue gets a reference to the given float64 and assigns it to the Value field.
func (o *RUMAggregateBucketValueTimeseriesPoint) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateRequest The object sent with the request to retrieve aggregation buckets of RUM events from your organization.
type RUMAggregateRequest struct {
// The list of metrics or timeseries to compute for the retrieved buckets.
Compute []RUMCompute `json:"compute,omitempty"`
// The search and filter query settings.
Filter *RUMQueryFilter `json:"filter,omitempty"`
// The rules for the group by.
GroupBy []RUMGroupBy `json:"group_by,omitempty"`
// Global query options that are used during the query.
// Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *RUMQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *RUMQueryPageOptions `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateRequest() *RUMAggregateRequest
NewRUMAggregateRequest instantiates a new RUMAggregateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateRequestWithDefaults() *RUMAggregateRequest
NewRUMAggregateRequestWithDefaults instantiates a new RUMAggregateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateRequest) GetCompute() []RUMCompute
GetCompute returns the Compute field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetComputeOk() (*[]RUMCompute, bool)
GetComputeOk returns a tuple with the Compute field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetFilter() RUMQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetFilterOk() (*RUMQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetGroupBy() []RUMGroupBy
GetGroupBy returns the GroupBy field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetGroupByOk() (*[]RUMGroupBy, bool)
GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetOptions() RUMQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetOptionsOk() (*RUMQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) GetPage() RUMQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMAggregateRequest) GetPageOk() (*RUMQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateRequest) HasCompute() bool
HasCompute returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasGroupBy() bool
HasGroupBy returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *RUMAggregateRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o RUMAggregateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateRequest) SetCompute(v []RUMCompute)
SetCompute gets a reference to the given []RUMCompute and assigns it to the Compute field.
func (o *RUMAggregateRequest) SetFilter(v RUMQueryFilter)
SetFilter gets a reference to the given RUMQueryFilter and assigns it to the Filter field.
func (o *RUMAggregateRequest) SetGroupBy(v []RUMGroupBy)
SetGroupBy gets a reference to the given []RUMGroupBy and assigns it to the GroupBy field.
func (o *RUMAggregateRequest) SetOptions(v RUMQueryOptions)
SetOptions gets a reference to the given RUMQueryOptions and assigns it to the Options field.
func (o *RUMAggregateRequest) SetPage(v RUMQueryPageOptions)
SetPage gets a reference to the given RUMQueryPageOptions and assigns it to the Page field.
func (o *RUMAggregateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateSort A sort rule.
type RUMAggregateSort struct {
// An aggregation function.
Aggregation *RUMAggregationFunction `json:"aggregation,omitempty"`
// The metric to sort by (only used for `type=measure`).
Metric *string `json:"metric,omitempty"`
// The order to use, ascending or descending.
Order *RUMSortOrder `json:"order,omitempty"`
// The type of sorting algorithm.
Type *RUMAggregateSortType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregateSort() *RUMAggregateSort
NewRUMAggregateSort instantiates a new RUMAggregateSort object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregateSortWithDefaults() *RUMAggregateSort
NewRUMAggregateSortWithDefaults instantiates a new RUMAggregateSort object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregateSort) GetAggregation() RUMAggregationFunction
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetAggregationOk() (*RUMAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetOrder() RUMSortOrder
GetOrder returns the Order field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetOrderOk() (*RUMSortOrder, bool)
GetOrderOk returns a tuple with the Order field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) GetType() RUMAggregateSortType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMAggregateSort) GetTypeOk() (*RUMAggregateSortType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregateSort) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasOrder() bool
HasOrder returns a boolean if a field has been set.
func (o *RUMAggregateSort) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMAggregateSort) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregateSort) SetAggregation(v RUMAggregationFunction)
SetAggregation gets a reference to the given RUMAggregationFunction and assigns it to the Aggregation field.
func (o *RUMAggregateSort) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *RUMAggregateSort) SetOrder(v RUMSortOrder)
SetOrder gets a reference to the given RUMSortOrder and assigns it to the Order field.
func (o *RUMAggregateSort) SetType(v RUMAggregateSortType)
SetType gets a reference to the given RUMAggregateSortType and assigns it to the Type field.
func (o *RUMAggregateSort) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregateSortType The type of sorting algorithm.
type RUMAggregateSortType string
List of RUMAggregateSortType.
const (
RUMAGGREGATESORTTYPE_ALPHABETICAL RUMAggregateSortType = "alphabetical"
RUMAGGREGATESORTTYPE_MEASURE RUMAggregateSortType = "measure"
)
func NewRUMAggregateSortTypeFromValue(v string) (*RUMAggregateSortType, error)
NewRUMAggregateSortTypeFromValue returns a pointer to a valid RUMAggregateSortType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMAggregateSortType) GetAllowedValues() []RUMAggregateSortType
GetAllowedValues reeturns the list of possible values.
func (v RUMAggregateSortType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMAggregateSortType) Ptr() *RUMAggregateSortType
Ptr returns reference to RUMAggregateSortType value.
func (v *RUMAggregateSortType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAggregationBucketsResponse The query results.
type RUMAggregationBucketsResponse struct {
// The list of matching buckets, one item per bucket.
Buckets []RUMBucketResponse `json:"buckets,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAggregationBucketsResponse() *RUMAggregationBucketsResponse
NewRUMAggregationBucketsResponse instantiates a new RUMAggregationBucketsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAggregationBucketsResponseWithDefaults() *RUMAggregationBucketsResponse
NewRUMAggregationBucketsResponseWithDefaults instantiates a new RUMAggregationBucketsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAggregationBucketsResponse) GetBuckets() []RUMBucketResponse
GetBuckets returns the Buckets field value if set, zero value otherwise.
func (o *RUMAggregationBucketsResponse) GetBucketsOk() (*[]RUMBucketResponse, bool)
GetBucketsOk returns a tuple with the Buckets field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAggregationBucketsResponse) HasBuckets() bool
HasBuckets returns a boolean if a field has been set.
func (o RUMAggregationBucketsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAggregationBucketsResponse) SetBuckets(v []RUMBucketResponse)
SetBuckets gets a reference to the given []RUMBucketResponse and assigns it to the Buckets field.
func (o *RUMAggregationBucketsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMAggregationFunction An aggregation function.
type RUMAggregationFunction string
List of RUMAggregationFunction.
const (
RUMAGGREGATIONFUNCTION_COUNT RUMAggregationFunction = "count"
RUMAGGREGATIONFUNCTION_CARDINALITY RUMAggregationFunction = "cardinality"
RUMAGGREGATIONFUNCTION_PERCENTILE_75 RUMAggregationFunction = "pc75"
RUMAGGREGATIONFUNCTION_PERCENTILE_90 RUMAggregationFunction = "pc90"
RUMAGGREGATIONFUNCTION_PERCENTILE_95 RUMAggregationFunction = "pc95"
RUMAGGREGATIONFUNCTION_PERCENTILE_98 RUMAggregationFunction = "pc98"
RUMAGGREGATIONFUNCTION_PERCENTILE_99 RUMAggregationFunction = "pc99"
RUMAGGREGATIONFUNCTION_SUM RUMAggregationFunction = "sum"
RUMAGGREGATIONFUNCTION_MIN RUMAggregationFunction = "min"
RUMAGGREGATIONFUNCTION_MAX RUMAggregationFunction = "max"
RUMAGGREGATIONFUNCTION_AVG RUMAggregationFunction = "avg"
RUMAGGREGATIONFUNCTION_MEDIAN RUMAggregationFunction = "median"
)
func NewRUMAggregationFunctionFromValue(v string) (*RUMAggregationFunction, error)
NewRUMAggregationFunctionFromValue returns a pointer to a valid RUMAggregationFunction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMAggregationFunction) GetAllowedValues() []RUMAggregationFunction
GetAllowedValues reeturns the list of possible values.
func (v RUMAggregationFunction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMAggregationFunction) Ptr() *RUMAggregationFunction
Ptr returns reference to RUMAggregationFunction value.
func (v *RUMAggregationFunction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMAnalyticsAggregateResponse The response object for the RUM events aggregate API endpoint.
type RUMAnalyticsAggregateResponse struct {
// The query results.
Data *RUMAggregationBucketsResponse `json:"data,omitempty"`
// Links attributes.
Links *RUMResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *RUMResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMAnalyticsAggregateResponse() *RUMAnalyticsAggregateResponse
NewRUMAnalyticsAggregateResponse instantiates a new RUMAnalyticsAggregateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMAnalyticsAggregateResponseWithDefaults() *RUMAnalyticsAggregateResponse
NewRUMAnalyticsAggregateResponseWithDefaults instantiates a new RUMAnalyticsAggregateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMAnalyticsAggregateResponse) GetData() RUMAggregationBucketsResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetDataOk() (*RUMAggregationBucketsResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) GetLinks() RUMResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetLinksOk() (*RUMResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) GetMeta() RUMResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RUMAnalyticsAggregateResponse) GetMetaOk() (*RUMResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMAnalyticsAggregateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RUMAnalyticsAggregateResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *RUMAnalyticsAggregateResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RUMAnalyticsAggregateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMAnalyticsAggregateResponse) SetData(v RUMAggregationBucketsResponse)
SetData gets a reference to the given RUMAggregationBucketsResponse and assigns it to the Data field.
func (o *RUMAnalyticsAggregateResponse) SetLinks(v RUMResponseLinks)
SetLinks gets a reference to the given RUMResponseLinks and assigns it to the Links field.
func (o *RUMAnalyticsAggregateResponse) SetMeta(v RUMResponseMetadata)
SetMeta gets a reference to the given RUMResponseMetadata and assigns it to the Meta field.
func (o *RUMAnalyticsAggregateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApi service type
type RUMApi datadog.Service
func NewRUMApi(client *datadog.APIClient) *RUMApi
NewRUMApi Returns NewRUMApi.
func (a *RUMApi) AggregateRUMEvents(ctx _context.Context, body RUMAggregateRequest) (RUMAnalyticsAggregateResponse, *_nethttp.Response, error)
AggregateRUMEvents Aggregate RUM events. The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries.
func (a *RUMApi) CreateRUMApplication(ctx _context.Context, body RUMApplicationCreateRequest) (RUMApplicationResponse, *_nethttp.Response, error)
CreateRUMApplication Create a new RUM application. Create a new RUM application in your organization.
func (a *RUMApi) DeleteRUMApplication(ctx _context.Context, id string) (*_nethttp.Response, error)
DeleteRUMApplication Delete a RUM application. Delete an existing RUM application in your organization.
func (a *RUMApi) GetRUMApplication(ctx _context.Context, id string) (RUMApplicationResponse, *_nethttp.Response, error)
GetRUMApplication Get a RUM application. Get the RUM application with given ID in your organization.
func (a *RUMApi) GetRUMApplications(ctx _context.Context) (RUMApplicationsResponse, *_nethttp.Response, error)
GetRUMApplications List all the RUM applications. List all the RUM applications in your organization.
func (a *RUMApi) ListRUMEvents(ctx _context.Context, o ...ListRUMEventsOptionalParameters) (RUMEventsResponse, *_nethttp.Response, error)
ListRUMEvents Get a list of RUM events. List endpoint returns events that match a RUM search query. [Results are paginated]1.
Use this endpoint to see your latest RUM events.
func (a *RUMApi) ListRUMEventsWithPagination(ctx _context.Context, o ...ListRUMEventsOptionalParameters) (<-chan RUMEvent, func(), error)
ListRUMEventsWithPagination provides a paginated version of ListRUMEvents returning a channel with all items.
func (a *RUMApi) SearchRUMEvents(ctx _context.Context, body RUMSearchEventsRequest) (RUMEventsResponse, *_nethttp.Response, error)
SearchRUMEvents Search RUM events. List endpoint returns RUM events that match a RUM search query. [Results are paginated]1.
Use this endpoint to build complex RUM events filtering and search.
func (a *RUMApi) SearchRUMEventsWithPagination(ctx _context.Context, body RUMSearchEventsRequest) (<-chan RUMEvent, func(), error)
SearchRUMEventsWithPagination provides a paginated version of SearchRUMEvents returning a channel with all items.
func (a *RUMApi) UpdateRUMApplication(ctx _context.Context, id string, body RUMApplicationUpdateRequest) (RUMApplicationResponse, *_nethttp.Response, error)
UpdateRUMApplication Update a RUM application. Update the RUM application with given ID in your organization.
RUMApplication RUM application.
type RUMApplication struct {
// RUM application attributes.
Attributes RUMApplicationAttributes `json:"attributes"`
// RUM application ID.
Id string `json:"id"`
// RUM application response type.
Type RUMApplicationType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplication(attributes RUMApplicationAttributes, id string, typeVar RUMApplicationType) *RUMApplication
NewRUMApplication instantiates a new RUMApplication object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationWithDefaults() *RUMApplication
NewRUMApplicationWithDefaults instantiates a new RUMApplication object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplication) GetAttributes() RUMApplicationAttributes
GetAttributes returns the Attributes field value.
func (o *RUMApplication) GetAttributesOk() (*RUMApplicationAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RUMApplication) GetId() string
GetId returns the Id field value.
func (o *RUMApplication) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RUMApplication) GetType() RUMApplicationType
GetType returns the Type field value.
func (o *RUMApplication) GetTypeOk() (*RUMApplicationType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RUMApplication) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplication) SetAttributes(v RUMApplicationAttributes)
SetAttributes sets field value.
func (o *RUMApplication) SetId(v string)
SetId sets field value.
func (o *RUMApplication) SetType(v RUMApplicationType)
SetType sets field value.
func (o *RUMApplication) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationAttributes RUM application attributes.
type RUMApplicationAttributes struct {
// ID of the RUM application.
ApplicationId string `json:"application_id"`
// Timestamp in ms of the creation date.
CreatedAt int64 `json:"created_at"`
// Handle of the creator user.
CreatedByHandle string `json:"created_by_handle"`
// Client token of the RUM application.
Hash *string `json:"hash,omitempty"`
// Name of the RUM application.
Name string `json:"name"`
// Org ID of the RUM application.
OrgId int32 `json:"org_id"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type string `json:"type"`
// Timestamp in ms of the last update date.
UpdatedAt int64 `json:"updated_at"`
// Handle of the updater user.
UpdatedByHandle string `json:"updated_by_handle"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationAttributes(applicationId string, createdAt int64, createdByHandle string, name string, orgId int32, typeVar string, updatedAt int64, updatedByHandle string) *RUMApplicationAttributes
NewRUMApplicationAttributes instantiates a new RUMApplicationAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationAttributesWithDefaults() *RUMApplicationAttributes
NewRUMApplicationAttributesWithDefaults instantiates a new RUMApplicationAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationAttributes) GetApplicationId() string
GetApplicationId returns the ApplicationId field value.
func (o *RUMApplicationAttributes) GetApplicationIdOk() (*string, bool)
GetApplicationIdOk returns a tuple with the ApplicationId field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value.
func (o *RUMApplicationAttributes) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetCreatedByHandle() string
GetCreatedByHandle returns the CreatedByHandle field value.
func (o *RUMApplicationAttributes) GetCreatedByHandleOk() (*string, bool)
GetCreatedByHandleOk returns a tuple with the CreatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetHash() string
GetHash returns the Hash field value if set, zero value otherwise.
func (o *RUMApplicationAttributes) GetHashOk() (*string, bool)
GetHashOk returns a tuple with the Hash field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetName() string
GetName returns the Name field value.
func (o *RUMApplicationAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetOrgId() int32
GetOrgId returns the OrgId field value.
func (o *RUMApplicationAttributes) GetOrgIdOk() (*int32, bool)
GetOrgIdOk returns a tuple with the OrgId field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetType() string
GetType returns the Type field value.
func (o *RUMApplicationAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field value.
func (o *RUMApplicationAttributes) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) GetUpdatedByHandle() string
GetUpdatedByHandle returns the UpdatedByHandle field value.
func (o *RUMApplicationAttributes) GetUpdatedByHandleOk() (*string, bool)
GetUpdatedByHandleOk returns a tuple with the UpdatedByHandle field value and a boolean to check if the value has been set.
func (o *RUMApplicationAttributes) HasHash() bool
HasHash returns a boolean if a field has been set.
func (o RUMApplicationAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationAttributes) SetApplicationId(v string)
SetApplicationId sets field value.
func (o *RUMApplicationAttributes) SetCreatedAt(v int64)
SetCreatedAt sets field value.
func (o *RUMApplicationAttributes) SetCreatedByHandle(v string)
SetCreatedByHandle sets field value.
func (o *RUMApplicationAttributes) SetHash(v string)
SetHash gets a reference to the given string and assigns it to the Hash field.
func (o *RUMApplicationAttributes) SetName(v string)
SetName sets field value.
func (o *RUMApplicationAttributes) SetOrgId(v int32)
SetOrgId sets field value.
func (o *RUMApplicationAttributes) SetType(v string)
SetType sets field value.
func (o *RUMApplicationAttributes) SetUpdatedAt(v int64)
SetUpdatedAt sets field value.
func (o *RUMApplicationAttributes) SetUpdatedByHandle(v string)
SetUpdatedByHandle sets field value.
func (o *RUMApplicationAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreate RUM application creation.
type RUMApplicationCreate struct {
// RUM application creation attributes.
Attributes RUMApplicationCreateAttributes `json:"attributes"`
// RUM application creation type.
Type RUMApplicationCreateType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreate(attributes RUMApplicationCreateAttributes, typeVar RUMApplicationCreateType) *RUMApplicationCreate
NewRUMApplicationCreate instantiates a new RUMApplicationCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateWithDefaults() *RUMApplicationCreate
NewRUMApplicationCreateWithDefaults instantiates a new RUMApplicationCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreate) GetAttributes() RUMApplicationCreateAttributes
GetAttributes returns the Attributes field value.
func (o *RUMApplicationCreate) GetAttributesOk() (*RUMApplicationCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RUMApplicationCreate) GetType() RUMApplicationCreateType
GetType returns the Type field value.
func (o *RUMApplicationCreate) GetTypeOk() (*RUMApplicationCreateType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RUMApplicationCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreate) SetAttributes(v RUMApplicationCreateAttributes)
SetAttributes sets field value.
func (o *RUMApplicationCreate) SetType(v RUMApplicationCreateType)
SetType sets field value.
func (o *RUMApplicationCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateAttributes RUM application creation attributes.
type RUMApplicationCreateAttributes struct {
// Name of the RUM application.
Name string `json:"name"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreateAttributes(name string) *RUMApplicationCreateAttributes
NewRUMApplicationCreateAttributes instantiates a new RUMApplicationCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateAttributesWithDefaults() *RUMApplicationCreateAttributes
NewRUMApplicationCreateAttributesWithDefaults instantiates a new RUMApplicationCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *RUMApplicationCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RUMApplicationCreateAttributes) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMApplicationCreateAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationCreateAttributes) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMApplicationCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreateAttributes) SetName(v string)
SetName sets field value.
func (o *RUMApplicationCreateAttributes) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *RUMApplicationCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateRequest RUM application creation request attributes.
type RUMApplicationCreateRequest struct {
// RUM application creation.
Data RUMApplicationCreate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationCreateRequest(data RUMApplicationCreate) *RUMApplicationCreateRequest
NewRUMApplicationCreateRequest instantiates a new RUMApplicationCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationCreateRequestWithDefaults() *RUMApplicationCreateRequest
NewRUMApplicationCreateRequestWithDefaults instantiates a new RUMApplicationCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationCreateRequest) GetData() RUMApplicationCreate
GetData returns the Data field value.
func (o *RUMApplicationCreateRequest) GetDataOk() (*RUMApplicationCreate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RUMApplicationCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationCreateRequest) SetData(v RUMApplicationCreate)
SetData sets field value.
func (o *RUMApplicationCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationCreateType RUM application creation type.
type RUMApplicationCreateType string
List of RUMApplicationCreateType.
const (
RUMAPPLICATIONCREATETYPE_RUM_APPLICATION_CREATE RUMApplicationCreateType = "rum_application_create"
)
func NewRUMApplicationCreateTypeFromValue(v string) (*RUMApplicationCreateType, error)
NewRUMApplicationCreateTypeFromValue returns a pointer to a valid RUMApplicationCreateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationCreateType) GetAllowedValues() []RUMApplicationCreateType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationCreateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationCreateType) Ptr() *RUMApplicationCreateType
Ptr returns reference to RUMApplicationCreateType value.
func (v *RUMApplicationCreateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationResponse RUM application response.
type RUMApplicationResponse struct {
// RUM application.
Data *RUMApplication `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationResponse() *RUMApplicationResponse
NewRUMApplicationResponse instantiates a new RUMApplicationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationResponseWithDefaults() *RUMApplicationResponse
NewRUMApplicationResponseWithDefaults instantiates a new RUMApplicationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationResponse) GetData() RUMApplication
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMApplicationResponse) GetDataOk() (*RUMApplication, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RUMApplicationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationResponse) SetData(v RUMApplication)
SetData gets a reference to the given RUMApplication and assigns it to the Data field.
func (o *RUMApplicationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationType RUM application response type.
type RUMApplicationType string
List of RUMApplicationType.
const (
RUMAPPLICATIONTYPE_RUM_APPLICATION RUMApplicationType = "rum_application"
)
func NewRUMApplicationTypeFromValue(v string) (*RUMApplicationType, error)
NewRUMApplicationTypeFromValue returns a pointer to a valid RUMApplicationType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationType) GetAllowedValues() []RUMApplicationType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationType) Ptr() *RUMApplicationType
Ptr returns reference to RUMApplicationType value.
func (v *RUMApplicationType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdate RUM application update.
type RUMApplicationUpdate struct {
// RUM application update attributes.
Attributes *RUMApplicationUpdateAttributes `json:"attributes,omitempty"`
// RUM application ID.
Id string `json:"id"`
// RUM application update type.
Type RUMApplicationUpdateType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdate(id string, typeVar RUMApplicationUpdateType) *RUMApplicationUpdate
NewRUMApplicationUpdate instantiates a new RUMApplicationUpdate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateWithDefaults() *RUMApplicationUpdate
NewRUMApplicationUpdateWithDefaults instantiates a new RUMApplicationUpdate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdate) GetAttributes() RUMApplicationUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMApplicationUpdate) GetAttributesOk() (*RUMApplicationUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) GetId() string
GetId returns the Id field value.
func (o *RUMApplicationUpdate) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) GetType() RUMApplicationUpdateType
GetType returns the Type field value.
func (o *RUMApplicationUpdate) GetTypeOk() (*RUMApplicationUpdateType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RUMApplicationUpdate) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o RUMApplicationUpdate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdate) SetAttributes(v RUMApplicationUpdateAttributes)
SetAttributes gets a reference to the given RUMApplicationUpdateAttributes and assigns it to the Attributes field.
func (o *RUMApplicationUpdate) SetId(v string)
SetId sets field value.
func (o *RUMApplicationUpdate) SetType(v RUMApplicationUpdateType)
SetType sets field value.
func (o *RUMApplicationUpdate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateAttributes RUM application update attributes.
type RUMApplicationUpdateAttributes struct {
// Name of the RUM application.
Name *string `json:"name,omitempty"`
// Type of the RUM application. Supported values are `browser`, `ios`, `android`, `react-native`, `flutter`.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdateAttributes() *RUMApplicationUpdateAttributes
NewRUMApplicationUpdateAttributes instantiates a new RUMApplicationUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateAttributesWithDefaults() *RUMApplicationUpdateAttributes
NewRUMApplicationUpdateAttributesWithDefaults instantiates a new RUMApplicationUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RUMApplicationUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdateAttributes) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMApplicationUpdateAttributes) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *RUMApplicationUpdateAttributes) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMApplicationUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RUMApplicationUpdateAttributes) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *RUMApplicationUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateRequest RUM application update request.
type RUMApplicationUpdateRequest struct {
// RUM application update.
Data RUMApplicationUpdate `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationUpdateRequest(data RUMApplicationUpdate) *RUMApplicationUpdateRequest
NewRUMApplicationUpdateRequest instantiates a new RUMApplicationUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationUpdateRequestWithDefaults() *RUMApplicationUpdateRequest
NewRUMApplicationUpdateRequestWithDefaults instantiates a new RUMApplicationUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationUpdateRequest) GetData() RUMApplicationUpdate
GetData returns the Data field value.
func (o *RUMApplicationUpdateRequest) GetDataOk() (*RUMApplicationUpdate, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RUMApplicationUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationUpdateRequest) SetData(v RUMApplicationUpdate)
SetData sets field value.
func (o *RUMApplicationUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMApplicationUpdateType RUM application update type.
type RUMApplicationUpdateType string
List of RUMApplicationUpdateType.
const (
RUMAPPLICATIONUPDATETYPE_RUM_APPLICATION_UPDATE RUMApplicationUpdateType = "rum_application_update"
)
func NewRUMApplicationUpdateTypeFromValue(v string) (*RUMApplicationUpdateType, error)
NewRUMApplicationUpdateTypeFromValue returns a pointer to a valid RUMApplicationUpdateType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMApplicationUpdateType) GetAllowedValues() []RUMApplicationUpdateType
GetAllowedValues reeturns the list of possible values.
func (v RUMApplicationUpdateType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMApplicationUpdateType) Ptr() *RUMApplicationUpdateType
Ptr returns reference to RUMApplicationUpdateType value.
func (v *RUMApplicationUpdateType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMApplicationsResponse RUM applications response.
type RUMApplicationsResponse struct {
// RUM applications array response.
Data []RUMApplication `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMApplicationsResponse() *RUMApplicationsResponse
NewRUMApplicationsResponse instantiates a new RUMApplicationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMApplicationsResponseWithDefaults() *RUMApplicationsResponse
NewRUMApplicationsResponseWithDefaults instantiates a new RUMApplicationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMApplicationsResponse) GetData() []RUMApplication
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMApplicationsResponse) GetDataOk() (*[]RUMApplication, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMApplicationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RUMApplicationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMApplicationsResponse) SetData(v []RUMApplication)
SetData gets a reference to the given []RUMApplication and assigns it to the Data field.
func (o *RUMApplicationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMBucketResponse Bucket values.
type RUMBucketResponse struct {
// The key-value pairs for each group-by.
By map[string]string `json:"by,omitempty"`
// A map of the metric name to value for regular compute, or a list of values for a timeseries.
Computes map[string]RUMAggregateBucketValue `json:"computes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMBucketResponse() *RUMBucketResponse
NewRUMBucketResponse instantiates a new RUMBucketResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMBucketResponseWithDefaults() *RUMBucketResponse
NewRUMBucketResponseWithDefaults instantiates a new RUMBucketResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMBucketResponse) GetBy() map[string]string
GetBy returns the By field value if set, zero value otherwise.
func (o *RUMBucketResponse) GetByOk() (*map[string]string, bool)
GetByOk returns a tuple with the By field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMBucketResponse) GetComputes() map[string]RUMAggregateBucketValue
GetComputes returns the Computes field value if set, zero value otherwise.
func (o *RUMBucketResponse) GetComputesOk() (*map[string]RUMAggregateBucketValue, bool)
GetComputesOk returns a tuple with the Computes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMBucketResponse) HasBy() bool
HasBy returns a boolean if a field has been set.
func (o *RUMBucketResponse) HasComputes() bool
HasComputes returns a boolean if a field has been set.
func (o RUMBucketResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMBucketResponse) SetBy(v map[string]string)
SetBy gets a reference to the given map[string]string and assigns it to the By field.
func (o *RUMBucketResponse) SetComputes(v map[string]RUMAggregateBucketValue)
SetComputes gets a reference to the given map[string]RUMAggregateBucketValue and assigns it to the Computes field.
func (o *RUMBucketResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMCompute A compute rule to compute metrics or timeseries.
type RUMCompute struct {
// An aggregation function.
Aggregation RUMAggregationFunction `json:"aggregation"`
// The time buckets' size (only used for type=timeseries)
// Defaults to a resolution of 150 points.
Interval *string `json:"interval,omitempty"`
// The metric to use.
Metric *string `json:"metric,omitempty"`
// The type of compute.
Type *RUMComputeType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMCompute(aggregation RUMAggregationFunction) *RUMCompute
NewRUMCompute instantiates a new RUMCompute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMComputeWithDefaults() *RUMCompute
NewRUMComputeWithDefaults instantiates a new RUMCompute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMCompute) GetAggregation() RUMAggregationFunction
GetAggregation returns the Aggregation field value.
func (o *RUMCompute) GetAggregationOk() (*RUMAggregationFunction, bool)
GetAggregationOk returns a tuple with the Aggregation field value and a boolean to check if the value has been set.
func (o *RUMCompute) GetInterval() string
GetInterval returns the Interval field value if set, zero value otherwise.
func (o *RUMCompute) GetIntervalOk() (*string, bool)
GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *RUMCompute) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) GetType() RUMComputeType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMCompute) GetTypeOk() (*RUMComputeType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMCompute) HasInterval() bool
HasInterval returns a boolean if a field has been set.
func (o *RUMCompute) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *RUMCompute) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMCompute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMCompute) SetAggregation(v RUMAggregationFunction)
SetAggregation sets field value.
func (o *RUMCompute) SetInterval(v string)
SetInterval gets a reference to the given string and assigns it to the Interval field.
func (o *RUMCompute) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *RUMCompute) SetType(v RUMComputeType)
SetType gets a reference to the given RUMComputeType and assigns it to the Type field.
func (o *RUMCompute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMComputeType The type of compute.
type RUMComputeType string
List of RUMComputeType.
const (
RUMCOMPUTETYPE_TIMESERIES RUMComputeType = "timeseries"
RUMCOMPUTETYPE_TOTAL RUMComputeType = "total"
)
func NewRUMComputeTypeFromValue(v string) (*RUMComputeType, error)
NewRUMComputeTypeFromValue returns a pointer to a valid RUMComputeType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMComputeType) GetAllowedValues() []RUMComputeType
GetAllowedValues reeturns the list of possible values.
func (v RUMComputeType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMComputeType) Ptr() *RUMComputeType
Ptr returns reference to RUMComputeType value.
func (v *RUMComputeType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMEvent Object description of a RUM event after being processed and stored by Datadog.
type RUMEvent struct {
// JSON object containing all event attributes and their associated values.
Attributes *RUMEventAttributes `json:"attributes,omitempty"`
// Unique ID of the event.
Id *string `json:"id,omitempty"`
// Type of the event.
Type *RUMEventType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEvent() *RUMEvent
NewRUMEvent instantiates a new RUMEvent object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventWithDefaults() *RUMEvent
NewRUMEventWithDefaults instantiates a new RUMEvent object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEvent) GetAttributes() RUMEventAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMEvent) GetAttributesOk() (*RUMEventAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RUMEvent) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) GetType() RUMEventType
GetType returns the Type field value if set, zero value otherwise.
func (o *RUMEvent) GetTypeOk() (*RUMEventType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEvent) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RUMEvent) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RUMEvent) HasType() bool
HasType returns a boolean if a field has been set.
func (o RUMEvent) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEvent) SetAttributes(v RUMEventAttributes)
SetAttributes gets a reference to the given RUMEventAttributes and assigns it to the Attributes field.
func (o *RUMEvent) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RUMEvent) SetType(v RUMEventType)
SetType gets a reference to the given RUMEventType and assigns it to the Type field.
func (o *RUMEvent) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMEventAttributes JSON object containing all event attributes and their associated values.
type RUMEventAttributes struct {
// JSON object of attributes from RUM events.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// The name of the application or service generating RUM events.
// It is used to switch from RUM to APM, so make sure you define the same
// value when you use both products.
Service *string `json:"service,omitempty"`
// Array of tags associated with your event.
Tags []string `json:"tags,omitempty"`
// Timestamp of your event.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEventAttributes() *RUMEventAttributes
NewRUMEventAttributes instantiates a new RUMEventAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventAttributesWithDefaults() *RUMEventAttributes
NewRUMEventAttributesWithDefaults instantiates a new RUMEventAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEventAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetService() string
GetService returns the Service field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetServiceOk() (*string, bool)
GetServiceOk returns a tuple with the Service field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *RUMEventAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasService() bool
HasService returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *RUMEventAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o RUMEventAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEventAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *RUMEventAttributes) SetService(v string)
SetService gets a reference to the given string and assigns it to the Service field.
func (o *RUMEventAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *RUMEventAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *RUMEventAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMEventType Type of the event.
type RUMEventType string
List of RUMEventType.
const (
RUMEVENTTYPE_RUM RUMEventType = "rum"
)
func NewRUMEventTypeFromValue(v string) (*RUMEventType, error)
NewRUMEventTypeFromValue returns a pointer to a valid RUMEventType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMEventType) GetAllowedValues() []RUMEventType
GetAllowedValues reeturns the list of possible values.
func (v RUMEventType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMEventType) Ptr() *RUMEventType
Ptr returns reference to RUMEventType value.
func (v *RUMEventType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMEventsResponse Response object with all events matching the request and pagination information.
type RUMEventsResponse struct {
// Array of events matching the request.
Data []RUMEvent `json:"data,omitempty"`
// Links attributes.
Links *RUMResponseLinks `json:"links,omitempty"`
// The metadata associated with a request.
Meta *RUMResponseMetadata `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMEventsResponse() *RUMEventsResponse
NewRUMEventsResponse instantiates a new RUMEventsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMEventsResponseWithDefaults() *RUMEventsResponse
NewRUMEventsResponseWithDefaults instantiates a new RUMEventsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMEventsResponse) GetData() []RUMEvent
GetData returns the Data field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetDataOk() (*[]RUMEvent, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) GetLinks() RUMResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetLinksOk() (*RUMResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) GetMeta() RUMResponseMetadata
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RUMEventsResponse) GetMetaOk() (*RUMResponseMetadata, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMEventsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RUMEventsResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *RUMEventsResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RUMEventsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMEventsResponse) SetData(v []RUMEvent)
SetData gets a reference to the given []RUMEvent and assigns it to the Data field.
func (o *RUMEventsResponse) SetLinks(v RUMResponseLinks)
SetLinks gets a reference to the given RUMResponseLinks and assigns it to the Links field.
func (o *RUMEventsResponse) SetMeta(v RUMResponseMetadata)
SetMeta gets a reference to the given RUMResponseMetadata and assigns it to the Meta field.
func (o *RUMEventsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupBy A group-by rule.
type RUMGroupBy struct {
// The name of the facet to use (required).
Facet string `json:"facet"`
// Used to perform a histogram computation (only for measure facets).
// Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
Histogram *RUMGroupByHistogram `json:"histogram,omitempty"`
// The maximum buckets to return for this group-by.
Limit *int64 `json:"limit,omitempty"`
// The value to use for logs that don't have the facet used to group by.
Missing *RUMGroupByMissing `json:"missing,omitempty"`
// A sort rule.
Sort *RUMAggregateSort `json:"sort,omitempty"`
// A resulting object to put the given computes in over all the matching records.
Total *RUMGroupByTotal `json:"total,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMGroupBy(facet string) *RUMGroupBy
NewRUMGroupBy instantiates a new RUMGroupBy object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMGroupByWithDefaults() *RUMGroupBy
NewRUMGroupByWithDefaults instantiates a new RUMGroupBy object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMGroupBy) GetFacet() string
GetFacet returns the Facet field value.
func (o *RUMGroupBy) GetFacetOk() (*string, bool)
GetFacetOk returns a tuple with the Facet field value and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetHistogram() RUMGroupByHistogram
GetHistogram returns the Histogram field value if set, zero value otherwise.
func (o *RUMGroupBy) GetHistogramOk() (*RUMGroupByHistogram, bool)
GetHistogramOk returns a tuple with the Histogram field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetLimit() int64
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *RUMGroupBy) GetLimitOk() (*int64, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetMissing() RUMGroupByMissing
GetMissing returns the Missing field value if set, zero value otherwise.
func (o *RUMGroupBy) GetMissingOk() (*RUMGroupByMissing, bool)
GetMissingOk returns a tuple with the Missing field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetSort() RUMAggregateSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *RUMGroupBy) GetSortOk() (*RUMAggregateSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) GetTotal() RUMGroupByTotal
GetTotal returns the Total field value if set, zero value otherwise.
func (o *RUMGroupBy) GetTotalOk() (*RUMGroupByTotal, bool)
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMGroupBy) HasHistogram() bool
HasHistogram returns a boolean if a field has been set.
func (o *RUMGroupBy) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o *RUMGroupBy) HasMissing() bool
HasMissing returns a boolean if a field has been set.
func (o *RUMGroupBy) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o *RUMGroupBy) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o RUMGroupBy) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMGroupBy) SetFacet(v string)
SetFacet sets field value.
func (o *RUMGroupBy) SetHistogram(v RUMGroupByHistogram)
SetHistogram gets a reference to the given RUMGroupByHistogram and assigns it to the Histogram field.
func (o *RUMGroupBy) SetLimit(v int64)
SetLimit gets a reference to the given int64 and assigns it to the Limit field.
func (o *RUMGroupBy) SetMissing(v RUMGroupByMissing)
SetMissing gets a reference to the given RUMGroupByMissing and assigns it to the Missing field.
func (o *RUMGroupBy) SetSort(v RUMAggregateSort)
SetSort gets a reference to the given RUMAggregateSort and assigns it to the Sort field.
func (o *RUMGroupBy) SetTotal(v RUMGroupByTotal)
SetTotal gets a reference to the given RUMGroupByTotal and assigns it to the Total field.
func (o *RUMGroupBy) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupByHistogram Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
type RUMGroupByHistogram struct {
// The bin size of the histogram buckets.
Interval float64 `json:"interval"`
// The maximum value for the measure used in the histogram
// (values greater than this one are filtered out).
Max float64 `json:"max"`
// The minimum value for the measure used in the histogram
// (values smaller than this one are filtered out).
Min float64 `json:"min"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMGroupByHistogram(interval float64, max float64, min float64) *RUMGroupByHistogram
NewRUMGroupByHistogram instantiates a new RUMGroupByHistogram object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMGroupByHistogramWithDefaults() *RUMGroupByHistogram
NewRUMGroupByHistogramWithDefaults instantiates a new RUMGroupByHistogram object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMGroupByHistogram) GetInterval() float64
GetInterval returns the Interval field value.
func (o *RUMGroupByHistogram) GetIntervalOk() (*float64, bool)
GetIntervalOk returns a tuple with the Interval field value and a boolean to check if the value has been set.
func (o *RUMGroupByHistogram) GetMax() float64
GetMax returns the Max field value.
func (o *RUMGroupByHistogram) GetMaxOk() (*float64, bool)
GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.
func (o *RUMGroupByHistogram) GetMin() float64
GetMin returns the Min field value.
func (o *RUMGroupByHistogram) GetMinOk() (*float64, bool)
GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.
func (o RUMGroupByHistogram) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMGroupByHistogram) SetInterval(v float64)
SetInterval sets field value.
func (o *RUMGroupByHistogram) SetMax(v float64)
SetMax sets field value.
func (o *RUMGroupByHistogram) SetMin(v float64)
SetMin sets field value.
func (o *RUMGroupByHistogram) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMGroupByMissing - The value to use for logs that don't have the facet used to group by.
type RUMGroupByMissing struct {
RUMGroupByMissingString *string
RUMGroupByMissingNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMGroupByMissingNumberAsRUMGroupByMissing(v *float64) RUMGroupByMissing
RUMGroupByMissingNumberAsRUMGroupByMissing is a convenience function that returns float64 wrapped in RUMGroupByMissing.
func RUMGroupByMissingStringAsRUMGroupByMissing(v *string) RUMGroupByMissing
RUMGroupByMissingStringAsRUMGroupByMissing is a convenience function that returns string wrapped in RUMGroupByMissing.
func (obj *RUMGroupByMissing) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMGroupByMissing) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMGroupByMissing) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMGroupByTotal - A resulting object to put the given computes in over all the matching records.
type RUMGroupByTotal struct {
RUMGroupByTotalBoolean *bool
RUMGroupByTotalString *string
RUMGroupByTotalNumber *float64
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func RUMGroupByTotalBooleanAsRUMGroupByTotal(v *bool) RUMGroupByTotal
RUMGroupByTotalBooleanAsRUMGroupByTotal is a convenience function that returns bool wrapped in RUMGroupByTotal.
func RUMGroupByTotalNumberAsRUMGroupByTotal(v *float64) RUMGroupByTotal
RUMGroupByTotalNumberAsRUMGroupByTotal is a convenience function that returns float64 wrapped in RUMGroupByTotal.
func RUMGroupByTotalStringAsRUMGroupByTotal(v *string) RUMGroupByTotal
RUMGroupByTotalStringAsRUMGroupByTotal is a convenience function that returns string wrapped in RUMGroupByTotal.
func (obj *RUMGroupByTotal) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj RUMGroupByTotal) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *RUMGroupByTotal) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
RUMQueryFilter The search and filter query settings.
type RUMQueryFilter struct {
// The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
From *string `json:"from,omitempty"`
// The search query following the RUM search syntax.
Query *string `json:"query,omitempty"`
// The maximum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
To *string `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryFilter() *RUMQueryFilter
NewRUMQueryFilter instantiates a new RUMQueryFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryFilterWithDefaults() *RUMQueryFilter
NewRUMQueryFilterWithDefaults instantiates a new RUMQueryFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryFilter) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) GetTo() string
GetTo returns the To field value if set, zero value otherwise.
func (o *RUMQueryFilter) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *RUMQueryFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *RUMQueryFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o RUMQueryFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryFilter) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (o *RUMQueryFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *RUMQueryFilter) SetTo(v string)
SetTo gets a reference to the given string and assigns it to the To field.
func (o *RUMQueryFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMQueryOptions Global query options that are used during the query. Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
type RUMQueryOptions struct {
// The time offset (in seconds) to apply to the query.
TimeOffset *int64 `json:"time_offset,omitempty"`
// The timezone can be specified both as an offset, for example: "UTC+03:00".
Timezone *string `json:"timezone,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryOptions() *RUMQueryOptions
NewRUMQueryOptions instantiates a new RUMQueryOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryOptionsWithDefaults() *RUMQueryOptions
NewRUMQueryOptionsWithDefaults instantiates a new RUMQueryOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryOptions) GetTimeOffset() int64
GetTimeOffset returns the TimeOffset field value if set, zero value otherwise.
func (o *RUMQueryOptions) GetTimeOffsetOk() (*int64, bool)
GetTimeOffsetOk returns a tuple with the TimeOffset field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryOptions) GetTimezone() string
GetTimezone returns the Timezone field value if set, zero value otherwise.
func (o *RUMQueryOptions) GetTimezoneOk() (*string, bool)
GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryOptions) HasTimeOffset() bool
HasTimeOffset returns a boolean if a field has been set.
func (o *RUMQueryOptions) HasTimezone() bool
HasTimezone returns a boolean if a field has been set.
func (o RUMQueryOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryOptions) SetTimeOffset(v int64)
SetTimeOffset gets a reference to the given int64 and assigns it to the TimeOffset field.
func (o *RUMQueryOptions) SetTimezone(v string)
SetTimezone gets a reference to the given string and assigns it to the Timezone field.
func (o *RUMQueryOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMQueryPageOptions Paging attributes for listing events.
type RUMQueryPageOptions struct {
// List following results with a cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// Maximum number of events in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMQueryPageOptions() *RUMQueryPageOptions
NewRUMQueryPageOptions instantiates a new RUMQueryPageOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMQueryPageOptionsWithDefaults() *RUMQueryPageOptions
NewRUMQueryPageOptionsWithDefaults instantiates a new RUMQueryPageOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMQueryPageOptions) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *RUMQueryPageOptions) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryPageOptions) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *RUMQueryPageOptions) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMQueryPageOptions) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *RUMQueryPageOptions) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o RUMQueryPageOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMQueryPageOptions) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *RUMQueryPageOptions) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *RUMQueryPageOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseLinks Links attributes.
type RUMResponseLinks struct {
// Link for the next set of results. Note that the request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponseLinks() *RUMResponseLinks
NewRUMResponseLinks instantiates a new RUMResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponseLinksWithDefaults() *RUMResponseLinks
NewRUMResponseLinksWithDefaults instantiates a new RUMResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *RUMResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o RUMResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *RUMResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseMetadata The metadata associated with a request.
type RUMResponseMetadata struct {
// The time elapsed in milliseconds.
Elapsed *int64 `json:"elapsed,omitempty"`
// Paging attributes.
Page *RUMResponsePage `json:"page,omitempty"`
// The identifier of the request.
RequestId *string `json:"request_id,omitempty"`
// The status of the response.
Status *RUMResponseStatus `json:"status,omitempty"`
// A list of warnings (non-fatal errors) encountered. Partial results may return if
// warnings are present in the response.
Warnings []RUMWarning `json:"warnings,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponseMetadata() *RUMResponseMetadata
NewRUMResponseMetadata instantiates a new RUMResponseMetadata object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponseMetadataWithDefaults() *RUMResponseMetadata
NewRUMResponseMetadataWithDefaults instantiates a new RUMResponseMetadata object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponseMetadata) GetElapsed() int64
GetElapsed returns the Elapsed field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetElapsedOk() (*int64, bool)
GetElapsedOk returns a tuple with the Elapsed field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetPage() RUMResponsePage
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetPageOk() (*RUMResponsePage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetRequestId() string
GetRequestId returns the RequestId field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetRequestIdOk() (*string, bool)
GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetStatus() RUMResponseStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetStatusOk() (*RUMResponseStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) GetWarnings() []RUMWarning
GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *RUMResponseMetadata) GetWarningsOk() (*[]RUMWarning, bool)
GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponseMetadata) HasElapsed() bool
HasElapsed returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasRequestId() bool
HasRequestId returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *RUMResponseMetadata) HasWarnings() bool
HasWarnings returns a boolean if a field has been set.
func (o RUMResponseMetadata) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponseMetadata) SetElapsed(v int64)
SetElapsed gets a reference to the given int64 and assigns it to the Elapsed field.
func (o *RUMResponseMetadata) SetPage(v RUMResponsePage)
SetPage gets a reference to the given RUMResponsePage and assigns it to the Page field.
func (o *RUMResponseMetadata) SetRequestId(v string)
SetRequestId gets a reference to the given string and assigns it to the RequestId field.
func (o *RUMResponseMetadata) SetStatus(v RUMResponseStatus)
SetStatus gets a reference to the given RUMResponseStatus and assigns it to the Status field.
func (o *RUMResponseMetadata) SetWarnings(v []RUMWarning)
SetWarnings gets a reference to the given []RUMWarning and assigns it to the Warnings field.
func (o *RUMResponseMetadata) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponsePage Paging attributes.
type RUMResponsePage struct {
// The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMResponsePage() *RUMResponsePage
NewRUMResponsePage instantiates a new RUMResponsePage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMResponsePageWithDefaults() *RUMResponsePage
NewRUMResponsePageWithDefaults instantiates a new RUMResponsePage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMResponsePage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *RUMResponsePage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMResponsePage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o RUMResponsePage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMResponsePage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *RUMResponsePage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMResponseStatus The status of the response.
type RUMResponseStatus string
List of RUMResponseStatus.
const (
RUMRESPONSESTATUS_DONE RUMResponseStatus = "done"
RUMRESPONSESTATUS_TIMEOUT RUMResponseStatus = "timeout"
)
func NewRUMResponseStatusFromValue(v string) (*RUMResponseStatus, error)
NewRUMResponseStatusFromValue returns a pointer to a valid RUMResponseStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMResponseStatus) GetAllowedValues() []RUMResponseStatus
GetAllowedValues reeturns the list of possible values.
func (v RUMResponseStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMResponseStatus) Ptr() *RUMResponseStatus
Ptr returns reference to RUMResponseStatus value.
func (v *RUMResponseStatus) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMSearchEventsRequest The request for a RUM events list.
type RUMSearchEventsRequest struct {
// The search and filter query settings.
Filter *RUMQueryFilter `json:"filter,omitempty"`
// Global query options that are used during the query.
// Note: Only supply timezone or time offset, not both. Otherwise, the query fails.
Options *RUMQueryOptions `json:"options,omitempty"`
// Paging attributes for listing events.
Page *RUMQueryPageOptions `json:"page,omitempty"`
// Sort parameters when querying events.
Sort *RUMSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMSearchEventsRequest() *RUMSearchEventsRequest
NewRUMSearchEventsRequest instantiates a new RUMSearchEventsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMSearchEventsRequestWithDefaults() *RUMSearchEventsRequest
NewRUMSearchEventsRequestWithDefaults instantiates a new RUMSearchEventsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMSearchEventsRequest) GetFilter() RUMQueryFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetFilterOk() (*RUMQueryFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetOptions() RUMQueryOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetOptionsOk() (*RUMQueryOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetPage() RUMQueryPageOptions
GetPage returns the Page field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetPageOk() (*RUMQueryPageOptions, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) GetSort() RUMSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *RUMSearchEventsRequest) GetSortOk() (*RUMSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMSearchEventsRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *RUMSearchEventsRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o RUMSearchEventsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMSearchEventsRequest) SetFilter(v RUMQueryFilter)
SetFilter gets a reference to the given RUMQueryFilter and assigns it to the Filter field.
func (o *RUMSearchEventsRequest) SetOptions(v RUMQueryOptions)
SetOptions gets a reference to the given RUMQueryOptions and assigns it to the Options field.
func (o *RUMSearchEventsRequest) SetPage(v RUMQueryPageOptions)
SetPage gets a reference to the given RUMQueryPageOptions and assigns it to the Page field.
func (o *RUMSearchEventsRequest) SetSort(v RUMSort)
SetSort gets a reference to the given RUMSort and assigns it to the Sort field.
func (o *RUMSearchEventsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RUMSort Sort parameters when querying events.
type RUMSort string
List of RUMSort.
const (
RUMSORT_TIMESTAMP_ASCENDING RUMSort = "timestamp"
RUMSORT_TIMESTAMP_DESCENDING RUMSort = "-timestamp"
)
func NewRUMSortFromValue(v string) (*RUMSort, error)
NewRUMSortFromValue returns a pointer to a valid RUMSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMSort) GetAllowedValues() []RUMSort
GetAllowedValues reeturns the list of possible values.
func (v RUMSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMSort) Ptr() *RUMSort
Ptr returns reference to RUMSort value.
func (v *RUMSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMSortOrder The order to use, ascending or descending.
type RUMSortOrder string
List of RUMSortOrder.
const (
RUMSORTORDER_ASCENDING RUMSortOrder = "asc"
RUMSORTORDER_DESCENDING RUMSortOrder = "desc"
)
func NewRUMSortOrderFromValue(v string) (*RUMSortOrder, error)
NewRUMSortOrderFromValue returns a pointer to a valid RUMSortOrder for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RUMSortOrder) GetAllowedValues() []RUMSortOrder
GetAllowedValues reeturns the list of possible values.
func (v RUMSortOrder) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RUMSortOrder) Ptr() *RUMSortOrder
Ptr returns reference to RUMSortOrder value.
func (v *RUMSortOrder) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RUMWarning A warning message indicating something that went wrong with the query.
type RUMWarning struct {
// A unique code for this type of warning.
Code *string `json:"code,omitempty"`
// A detailed explanation of this specific warning.
Detail *string `json:"detail,omitempty"`
// A short human-readable summary of the warning.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRUMWarning() *RUMWarning
NewRUMWarning instantiates a new RUMWarning object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRUMWarningWithDefaults() *RUMWarning
NewRUMWarningWithDefaults instantiates a new RUMWarning object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RUMWarning) GetCode() string
GetCode returns the Code field value if set, zero value otherwise.
func (o *RUMWarning) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) GetDetail() string
GetDetail returns the Detail field value if set, zero value otherwise.
func (o *RUMWarning) GetDetailOk() (*string, bool)
GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *RUMWarning) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RUMWarning) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *RUMWarning) HasDetail() bool
HasDetail returns a boolean if a field has been set.
func (o *RUMWarning) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o RUMWarning) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RUMWarning) SetCode(v string)
SetCode gets a reference to the given string and assigns it to the Code field.
func (o *RUMWarning) SetDetail(v string)
SetDetail gets a reference to the given string and assigns it to the Detail field.
func (o *RUMWarning) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *RUMWarning) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentAttachment A relationship reference for attachments.
type RelationshipToIncidentAttachment struct {
// An array of incident attachments.
Data []RelationshipToIncidentAttachmentData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentAttachment(data []RelationshipToIncidentAttachmentData) *RelationshipToIncidentAttachment
NewRelationshipToIncidentAttachment instantiates a new RelationshipToIncidentAttachment object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentAttachmentWithDefaults() *RelationshipToIncidentAttachment
NewRelationshipToIncidentAttachmentWithDefaults instantiates a new RelationshipToIncidentAttachment object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentAttachment) GetData() []RelationshipToIncidentAttachmentData
GetData returns the Data field value.
func (o *RelationshipToIncidentAttachment) GetDataOk() (*[]RelationshipToIncidentAttachmentData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentAttachment) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentAttachment) SetData(v []RelationshipToIncidentAttachmentData)
SetData sets field value.
func (o *RelationshipToIncidentAttachment) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentAttachmentData The attachment relationship data.
type RelationshipToIncidentAttachmentData struct {
// A unique identifier that represents the attachment.
Id string `json:"id"`
// The incident attachment resource type.
Type IncidentAttachmentType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentAttachmentData(id string, typeVar IncidentAttachmentType) *RelationshipToIncidentAttachmentData
NewRelationshipToIncidentAttachmentData instantiates a new RelationshipToIncidentAttachmentData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentAttachmentDataWithDefaults() *RelationshipToIncidentAttachmentData
NewRelationshipToIncidentAttachmentDataWithDefaults instantiates a new RelationshipToIncidentAttachmentData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentAttachmentData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentAttachmentData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentAttachmentData) GetType() IncidentAttachmentType
GetType returns the Type field value.
func (o *RelationshipToIncidentAttachmentData) GetTypeOk() (*IncidentAttachmentType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentAttachmentData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentAttachmentData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentAttachmentData) SetType(v IncidentAttachmentType)
SetType sets field value.
func (o *RelationshipToIncidentAttachmentData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentIntegrationMetadataData A relationship reference for an integration metadata object.
type RelationshipToIncidentIntegrationMetadataData struct {
// A unique identifier that represents the integration metadata.
Id string `json:"id"`
// Integration metadata resource type.
Type IncidentIntegrationMetadataType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentIntegrationMetadataData(id string, typeVar IncidentIntegrationMetadataType) *RelationshipToIncidentIntegrationMetadataData
NewRelationshipToIncidentIntegrationMetadataData instantiates a new RelationshipToIncidentIntegrationMetadataData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentIntegrationMetadataDataWithDefaults() *RelationshipToIncidentIntegrationMetadataData
NewRelationshipToIncidentIntegrationMetadataDataWithDefaults instantiates a new RelationshipToIncidentIntegrationMetadataData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentIntegrationMetadataData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentIntegrationMetadataData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentIntegrationMetadataData) GetType() IncidentIntegrationMetadataType
GetType returns the Type field value.
func (o *RelationshipToIncidentIntegrationMetadataData) GetTypeOk() (*IncidentIntegrationMetadataType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentIntegrationMetadataData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentIntegrationMetadataData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentIntegrationMetadataData) SetType(v IncidentIntegrationMetadataType)
SetType sets field value.
func (o *RelationshipToIncidentIntegrationMetadataData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentIntegrationMetadatas A relationship reference for multiple integration metadata objects.
type RelationshipToIncidentIntegrationMetadatas struct {
// The integration metadata relationship array
Data []RelationshipToIncidentIntegrationMetadataData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentIntegrationMetadatas(data []RelationshipToIncidentIntegrationMetadataData) *RelationshipToIncidentIntegrationMetadatas
NewRelationshipToIncidentIntegrationMetadatas instantiates a new RelationshipToIncidentIntegrationMetadatas object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentIntegrationMetadatasWithDefaults() *RelationshipToIncidentIntegrationMetadatas
NewRelationshipToIncidentIntegrationMetadatasWithDefaults instantiates a new RelationshipToIncidentIntegrationMetadatas object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentIntegrationMetadatas) GetData() []RelationshipToIncidentIntegrationMetadataData
GetData returns the Data field value.
func (o *RelationshipToIncidentIntegrationMetadatas) GetDataOk() (*[]RelationshipToIncidentIntegrationMetadataData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentIntegrationMetadatas) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentIntegrationMetadatas) SetData(v []RelationshipToIncidentIntegrationMetadataData)
SetData sets field value.
func (o *RelationshipToIncidentIntegrationMetadatas) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentPostmortem A relationship reference for postmortems.
type RelationshipToIncidentPostmortem struct {
// The postmortem relationship data.
Data RelationshipToIncidentPostmortemData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentPostmortem(data RelationshipToIncidentPostmortemData) *RelationshipToIncidentPostmortem
NewRelationshipToIncidentPostmortem instantiates a new RelationshipToIncidentPostmortem object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentPostmortemWithDefaults() *RelationshipToIncidentPostmortem
NewRelationshipToIncidentPostmortemWithDefaults instantiates a new RelationshipToIncidentPostmortem object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentPostmortem) GetData() RelationshipToIncidentPostmortemData
GetData returns the Data field value.
func (o *RelationshipToIncidentPostmortem) GetDataOk() (*RelationshipToIncidentPostmortemData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentPostmortem) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentPostmortem) SetData(v RelationshipToIncidentPostmortemData)
SetData sets field value.
func (o *RelationshipToIncidentPostmortem) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToIncidentPostmortemData The postmortem relationship data.
type RelationshipToIncidentPostmortemData struct {
// A unique identifier that represents the postmortem.
Id string `json:"id"`
// Incident postmortem resource type.
Type IncidentPostmortemType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToIncidentPostmortemData(id string, typeVar IncidentPostmortemType) *RelationshipToIncidentPostmortemData
NewRelationshipToIncidentPostmortemData instantiates a new RelationshipToIncidentPostmortemData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToIncidentPostmortemDataWithDefaults() *RelationshipToIncidentPostmortemData
NewRelationshipToIncidentPostmortemDataWithDefaults instantiates a new RelationshipToIncidentPostmortemData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToIncidentPostmortemData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToIncidentPostmortemData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToIncidentPostmortemData) GetType() IncidentPostmortemType
GetType returns the Type field value.
func (o *RelationshipToIncidentPostmortemData) GetTypeOk() (*IncidentPostmortemType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToIncidentPostmortemData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToIncidentPostmortemData) SetId(v string)
SetId sets field value.
func (o *RelationshipToIncidentPostmortemData) SetType(v IncidentPostmortemType)
SetType sets field value.
func (o *RelationshipToIncidentPostmortemData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganization Relationship to an organization.
type RelationshipToOrganization struct {
// Relationship to organization object.
Data RelationshipToOrganizationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganization(data RelationshipToOrganizationData) *RelationshipToOrganization
NewRelationshipToOrganization instantiates a new RelationshipToOrganization object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationWithDefaults() *RelationshipToOrganization
NewRelationshipToOrganizationWithDefaults instantiates a new RelationshipToOrganization object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganization) GetData() RelationshipToOrganizationData
GetData returns the Data field value.
func (o *RelationshipToOrganization) GetDataOk() (*RelationshipToOrganizationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToOrganization) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganization) SetData(v RelationshipToOrganizationData)
SetData sets field value.
func (o *RelationshipToOrganization) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganizationData Relationship to organization object.
type RelationshipToOrganizationData struct {
// ID of the organization.
Id string `json:"id"`
// Organizations resource type.
Type OrganizationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganizationData(id string, typeVar OrganizationsType) *RelationshipToOrganizationData
NewRelationshipToOrganizationData instantiates a new RelationshipToOrganizationData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationDataWithDefaults() *RelationshipToOrganizationData
NewRelationshipToOrganizationDataWithDefaults instantiates a new RelationshipToOrganizationData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganizationData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToOrganizationData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToOrganizationData) GetType() OrganizationsType
GetType returns the Type field value.
func (o *RelationshipToOrganizationData) GetTypeOk() (*OrganizationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToOrganizationData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganizationData) SetId(v string)
SetId sets field value.
func (o *RelationshipToOrganizationData) SetType(v OrganizationsType)
SetType sets field value.
func (o *RelationshipToOrganizationData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToOrganizations Relationship to organizations.
type RelationshipToOrganizations struct {
// Relationships to organization objects.
Data []RelationshipToOrganizationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToOrganizations(data []RelationshipToOrganizationData) *RelationshipToOrganizations
NewRelationshipToOrganizations instantiates a new RelationshipToOrganizations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToOrganizationsWithDefaults() *RelationshipToOrganizations
NewRelationshipToOrganizationsWithDefaults instantiates a new RelationshipToOrganizations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToOrganizations) GetData() []RelationshipToOrganizationData
GetData returns the Data field value.
func (o *RelationshipToOrganizations) GetDataOk() (*[]RelationshipToOrganizationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToOrganizations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToOrganizations) SetData(v []RelationshipToOrganizationData)
SetData sets field value.
func (o *RelationshipToOrganizations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermission Relationship to a permissions object.
type RelationshipToPermission struct {
// Relationship to permission object.
Data *RelationshipToPermissionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermission() *RelationshipToPermission
NewRelationshipToPermission instantiates a new RelationshipToPermission object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionWithDefaults() *RelationshipToPermission
NewRelationshipToPermissionWithDefaults instantiates a new RelationshipToPermission object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermission) GetData() RelationshipToPermissionData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToPermission) GetDataOk() (*RelationshipToPermissionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermission) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToPermission) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermission) SetData(v RelationshipToPermissionData)
SetData gets a reference to the given RelationshipToPermissionData and assigns it to the Data field.
func (o *RelationshipToPermission) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermissionData Relationship to permission object.
type RelationshipToPermissionData struct {
// ID of the permission.
Id *string `json:"id,omitempty"`
// Permissions resource type.
Type *PermissionsType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermissionData() *RelationshipToPermissionData
NewRelationshipToPermissionData instantiates a new RelationshipToPermissionData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionDataWithDefaults() *RelationshipToPermissionData
NewRelationshipToPermissionDataWithDefaults instantiates a new RelationshipToPermissionData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermissionData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RelationshipToPermissionData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissionData) GetType() PermissionsType
GetType returns the Type field value if set, zero value otherwise.
func (o *RelationshipToPermissionData) GetTypeOk() (*PermissionsType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissionData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RelationshipToPermissionData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RelationshipToPermissionData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermissionData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RelationshipToPermissionData) SetType(v PermissionsType)
SetType gets a reference to the given PermissionsType and assigns it to the Type field.
func (o *RelationshipToPermissionData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToPermissions Relationship to multiple permissions objects.
type RelationshipToPermissions struct {
// Relationships to permission objects.
Data []RelationshipToPermissionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToPermissions() *RelationshipToPermissions
NewRelationshipToPermissions instantiates a new RelationshipToPermissions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToPermissionsWithDefaults() *RelationshipToPermissions
NewRelationshipToPermissionsWithDefaults instantiates a new RelationshipToPermissions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToPermissions) GetData() []RelationshipToPermissionData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToPermissions) GetDataOk() (*[]RelationshipToPermissionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToPermissions) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToPermissions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToPermissions) SetData(v []RelationshipToPermissionData)
SetData gets a reference to the given []RelationshipToPermissionData and assigns it to the Data field.
func (o *RelationshipToPermissions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRole Relationship to role.
type RelationshipToRole struct {
// Relationship to role object.
Data *RelationshipToRoleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRole() *RelationshipToRole
NewRelationshipToRole instantiates a new RelationshipToRole object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRoleWithDefaults() *RelationshipToRole
NewRelationshipToRoleWithDefaults instantiates a new RelationshipToRole object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRole) GetData() RelationshipToRoleData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToRole) GetDataOk() (*RelationshipToRoleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRole) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToRole) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRole) SetData(v RelationshipToRoleData)
SetData gets a reference to the given RelationshipToRoleData and assigns it to the Data field.
func (o *RelationshipToRole) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRoleData Relationship to role object.
type RelationshipToRoleData struct {
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Roles type.
Type *RolesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRoleData() *RelationshipToRoleData
NewRelationshipToRoleData instantiates a new RelationshipToRoleData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRoleDataWithDefaults() *RelationshipToRoleData
NewRelationshipToRoleDataWithDefaults instantiates a new RelationshipToRoleData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRoleData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RelationshipToRoleData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoleData) GetType() RolesType
GetType returns the Type field value if set, zero value otherwise.
func (o *RelationshipToRoleData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoleData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RelationshipToRoleData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RelationshipToRoleData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRoleData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RelationshipToRoleData) SetType(v RolesType)
SetType gets a reference to the given RolesType and assigns it to the Type field.
func (o *RelationshipToRoleData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToRoles Relationship to roles.
type RelationshipToRoles struct {
// An array containing type and the unique identifier of a role.
Data []RelationshipToRoleData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToRoles() *RelationshipToRoles
NewRelationshipToRoles instantiates a new RelationshipToRoles object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToRolesWithDefaults() *RelationshipToRoles
NewRelationshipToRolesWithDefaults instantiates a new RelationshipToRoles object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToRoles) GetData() []RelationshipToRoleData
GetData returns the Data field value if set, zero value otherwise.
func (o *RelationshipToRoles) GetDataOk() (*[]RelationshipToRoleData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RelationshipToRoles) HasData() bool
HasData returns a boolean if a field has been set.
func (o RelationshipToRoles) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToRoles) SetData(v []RelationshipToRoleData)
SetData gets a reference to the given []RelationshipToRoleData and assigns it to the Data field.
func (o *RelationshipToRoles) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToSAMLAssertionAttribute AuthN Mapping relationship to SAML Assertion Attribute.
type RelationshipToSAMLAssertionAttribute struct {
// Data of AuthN Mapping relationship to SAML Assertion Attribute.
Data RelationshipToSAMLAssertionAttributeData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToSAMLAssertionAttribute(data RelationshipToSAMLAssertionAttributeData) *RelationshipToSAMLAssertionAttribute
NewRelationshipToSAMLAssertionAttribute instantiates a new RelationshipToSAMLAssertionAttribute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToSAMLAssertionAttributeWithDefaults() *RelationshipToSAMLAssertionAttribute
NewRelationshipToSAMLAssertionAttributeWithDefaults instantiates a new RelationshipToSAMLAssertionAttribute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToSAMLAssertionAttribute) GetData() RelationshipToSAMLAssertionAttributeData
GetData returns the Data field value.
func (o *RelationshipToSAMLAssertionAttribute) GetDataOk() (*RelationshipToSAMLAssertionAttributeData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToSAMLAssertionAttribute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToSAMLAssertionAttribute) SetData(v RelationshipToSAMLAssertionAttributeData)
SetData sets field value.
func (o *RelationshipToSAMLAssertionAttribute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToSAMLAssertionAttributeData Data of AuthN Mapping relationship to SAML Assertion Attribute.
type RelationshipToSAMLAssertionAttributeData struct {
// The ID of the SAML assertion attribute.
Id string `json:"id"`
// SAML assertion attributes resource type.
Type SAMLAssertionAttributesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToSAMLAssertionAttributeData(id string, typeVar SAMLAssertionAttributesType) *RelationshipToSAMLAssertionAttributeData
NewRelationshipToSAMLAssertionAttributeData instantiates a new RelationshipToSAMLAssertionAttributeData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToSAMLAssertionAttributeDataWithDefaults() *RelationshipToSAMLAssertionAttributeData
NewRelationshipToSAMLAssertionAttributeDataWithDefaults instantiates a new RelationshipToSAMLAssertionAttributeData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToSAMLAssertionAttributeData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToSAMLAssertionAttributeData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToSAMLAssertionAttributeData) GetType() SAMLAssertionAttributesType
GetType returns the Type field value.
func (o *RelationshipToSAMLAssertionAttributeData) GetTypeOk() (*SAMLAssertionAttributesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToSAMLAssertionAttributeData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToSAMLAssertionAttributeData) SetId(v string)
SetId sets field value.
func (o *RelationshipToSAMLAssertionAttributeData) SetType(v SAMLAssertionAttributesType)
SetType sets field value.
func (o *RelationshipToSAMLAssertionAttributeData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUser Relationship to user.
type RelationshipToUser struct {
// Relationship to user object.
Data RelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUser(data RelationshipToUserData) *RelationshipToUser
NewRelationshipToUser instantiates a new RelationshipToUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserWithDefaults() *RelationshipToUser
NewRelationshipToUserWithDefaults instantiates a new RelationshipToUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUser) GetData() RelationshipToUserData
GetData returns the Data field value.
func (o *RelationshipToUser) GetDataOk() (*RelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUser) SetData(v RelationshipToUserData)
SetData sets field value.
func (o *RelationshipToUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUserData Relationship to user object.
type RelationshipToUserData struct {
// A unique identifier that represents the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUserData(id string, typeVar UsersType) *RelationshipToUserData
NewRelationshipToUserData instantiates a new RelationshipToUserData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUserDataWithDefaults() *RelationshipToUserData
NewRelationshipToUserDataWithDefaults instantiates a new RelationshipToUserData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUserData) GetId() string
GetId returns the Id field value.
func (o *RelationshipToUserData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RelationshipToUserData) GetType() UsersType
GetType returns the Type field value.
func (o *RelationshipToUserData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RelationshipToUserData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUserData) SetId(v string)
SetId sets field value.
func (o *RelationshipToUserData) SetType(v UsersType)
SetType sets field value.
func (o *RelationshipToUserData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RelationshipToUsers Relationship to users.
type RelationshipToUsers struct {
// Relationships to user objects.
Data []RelationshipToUserData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRelationshipToUsers(data []RelationshipToUserData) *RelationshipToUsers
NewRelationshipToUsers instantiates a new RelationshipToUsers object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRelationshipToUsersWithDefaults() *RelationshipToUsers
NewRelationshipToUsersWithDefaults instantiates a new RelationshipToUsers object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RelationshipToUsers) GetData() []RelationshipToUserData
GetData returns the Data field value.
func (o *RelationshipToUsers) GetDataOk() (*[]RelationshipToUserData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RelationshipToUsers) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RelationshipToUsers) SetData(v []RelationshipToUserData)
SetData sets field value.
func (o *RelationshipToUsers) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ResponseMetaAttributes Object describing meta attributes of response.
type ResponseMetaAttributes struct {
// Pagination object.
Page *Pagination `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewResponseMetaAttributes() *ResponseMetaAttributes
NewResponseMetaAttributes instantiates a new ResponseMetaAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewResponseMetaAttributesWithDefaults() *ResponseMetaAttributes
NewResponseMetaAttributesWithDefaults instantiates a new ResponseMetaAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ResponseMetaAttributes) GetPage() Pagination
GetPage returns the Page field value if set, zero value otherwise.
func (o *ResponseMetaAttributes) GetPageOk() (*Pagination, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ResponseMetaAttributes) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o ResponseMetaAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ResponseMetaAttributes) SetPage(v Pagination)
SetPage gets a reference to the given Pagination and assigns it to the Page field.
func (o *ResponseMetaAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
Role Role object returned by the API.
type Role struct {
// Attributes of the role.
Attributes *RoleAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRole(typeVar RolesType) *Role
NewRole instantiates a new Role object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleWithDefaults() *Role
NewRoleWithDefaults instantiates a new Role object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *Role) GetAttributes() RoleAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Role) GetAttributesOk() (*RoleAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *Role) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *Role) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *Role) GetType() RolesType
GetType returns the Type field value.
func (o *Role) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *Role) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *Role) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Role) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o Role) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *Role) SetAttributes(v RoleAttributes)
SetAttributes gets a reference to the given RoleAttributes and assigns it to the Attributes field.
func (o *Role) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *Role) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *Role) SetType(v RolesType)
SetType sets field value.
func (o *Role) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleAttributes Attributes of the role.
type RoleAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// The name of the role. The name is neither unique nor a stable identifier of the role.
Name *string `json:"name,omitempty"`
// Number of users with that role.
UserCount *int64 `json:"user_count,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleAttributes() *RoleAttributes
NewRoleAttributes instantiates a new RoleAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleAttributesWithDefaults() *RoleAttributes
NewRoleAttributesWithDefaults instantiates a new RoleAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RoleAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) GetUserCount() int64
GetUserCount returns the UserCount field value if set, zero value otherwise.
func (o *RoleAttributes) GetUserCountOk() (*int64, bool)
GetUserCountOk returns a tuple with the UserCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *RoleAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *RoleAttributes) HasUserCount() bool
HasUserCount returns a boolean if a field has been set.
func (o RoleAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RoleAttributes) SetUserCount(v int64)
SetUserCount gets a reference to the given int64 and assigns it to the UserCount field.
func (o *RoleAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleClone Data for the clone role request.
type RoleClone struct {
// Attributes required to create a new role by cloning an existing one.
Attributes RoleCloneAttributes `json:"attributes"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleClone(attributes RoleCloneAttributes, typeVar RolesType) *RoleClone
NewRoleClone instantiates a new RoleClone object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneWithDefaults() *RoleClone
NewRoleCloneWithDefaults instantiates a new RoleClone object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleClone) GetAttributes() RoleCloneAttributes
GetAttributes returns the Attributes field value.
func (o *RoleClone) GetAttributesOk() (*RoleCloneAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleClone) GetType() RolesType
GetType returns the Type field value.
func (o *RoleClone) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o RoleClone) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleClone) SetAttributes(v RoleCloneAttributes)
SetAttributes sets field value.
func (o *RoleClone) SetType(v RolesType)
SetType sets field value.
func (o *RoleClone) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCloneAttributes Attributes required to create a new role by cloning an existing one.
type RoleCloneAttributes struct {
// Name of the new role that is cloned.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCloneAttributes(name string) *RoleCloneAttributes
NewRoleCloneAttributes instantiates a new RoleCloneAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneAttributesWithDefaults() *RoleCloneAttributes
NewRoleCloneAttributesWithDefaults instantiates a new RoleCloneAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCloneAttributes) GetName() string
GetName returns the Name field value.
func (o *RoleCloneAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o RoleCloneAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCloneAttributes) SetName(v string)
SetName sets field value.
func (o *RoleCloneAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCloneRequest Request to create a role by cloning an existing role.
type RoleCloneRequest struct {
// Data for the clone role request.
Data RoleClone `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCloneRequest(data RoleClone) *RoleCloneRequest
NewRoleCloneRequest instantiates a new RoleCloneRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCloneRequestWithDefaults() *RoleCloneRequest
NewRoleCloneRequestWithDefaults instantiates a new RoleCloneRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCloneRequest) GetData() RoleClone
GetData returns the Data field value.
func (o *RoleCloneRequest) GetDataOk() (*RoleClone, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleCloneRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCloneRequest) SetData(v RoleClone)
SetData sets field value.
func (o *RoleCloneRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateAttributes Attributes of the created role.
type RoleCreateAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the role.
Name string `json:"name"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateAttributes(name string) *RoleCreateAttributes
NewRoleCreateAttributes instantiates a new RoleCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateAttributesWithDefaults() *RoleCreateAttributes
NewRoleCreateAttributesWithDefaults instantiates a new RoleCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleCreateAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleCreateAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *RoleCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *RoleCreateAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleCreateAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o RoleCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleCreateAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleCreateAttributes) SetName(v string)
SetName sets field value.
func (o *RoleCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateData Data related to the creation of a role.
type RoleCreateData struct {
// Attributes of the created role.
Attributes RoleCreateAttributes `json:"attributes"`
// Relationships of the role object.
Relationships *RoleRelationships `json:"relationships,omitempty"`
// Roles type.
Type *RolesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateData(attributes RoleCreateAttributes) *RoleCreateData
NewRoleCreateData instantiates a new RoleCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateDataWithDefaults() *RoleCreateData
NewRoleCreateDataWithDefaults instantiates a new RoleCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateData) GetAttributes() RoleCreateAttributes
GetAttributes returns the Attributes field value.
func (o *RoleCreateData) GetAttributesOk() (*RoleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleCreateData) GetRelationships() RoleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleCreateData) GetRelationshipsOk() (*RoleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateData) GetType() RolesType
GetType returns the Type field value if set, zero value otherwise.
func (o *RoleCreateData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *RoleCreateData) HasType() bool
HasType returns a boolean if a field has been set.
func (o RoleCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateData) SetAttributes(v RoleCreateAttributes)
SetAttributes sets field value.
func (o *RoleCreateData) SetRelationships(v RoleRelationships)
SetRelationships gets a reference to the given RoleRelationships and assigns it to the Relationships field.
func (o *RoleCreateData) SetType(v RolesType)
SetType gets a reference to the given RolesType and assigns it to the Type field.
func (o *RoleCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateRequest Create a role.
type RoleCreateRequest struct {
// Data related to the creation of a role.
Data RoleCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateRequest(data RoleCreateData) *RoleCreateRequest
NewRoleCreateRequest instantiates a new RoleCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateRequestWithDefaults() *RoleCreateRequest
NewRoleCreateRequestWithDefaults instantiates a new RoleCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateRequest) GetData() RoleCreateData
GetData returns the Data field value.
func (o *RoleCreateRequest) GetDataOk() (*RoleCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateRequest) SetData(v RoleCreateData)
SetData sets field value.
func (o *RoleCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateResponse Response containing information about a created role.
type RoleCreateResponse struct {
// Role object returned by the API.
Data *RoleCreateResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateResponse() *RoleCreateResponse
NewRoleCreateResponse instantiates a new RoleCreateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateResponseWithDefaults() *RoleCreateResponse
NewRoleCreateResponseWithDefaults instantiates a new RoleCreateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateResponse) GetData() RoleCreateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleCreateResponse) GetDataOk() (*RoleCreateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleCreateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateResponse) SetData(v RoleCreateResponseData)
SetData gets a reference to the given RoleCreateResponseData and assigns it to the Data field.
func (o *RoleCreateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleCreateResponseData Role object returned by the API.
type RoleCreateResponseData struct {
// Attributes of the created role.
Attributes *RoleCreateAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleCreateResponseData(typeVar RolesType) *RoleCreateResponseData
NewRoleCreateResponseData instantiates a new RoleCreateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleCreateResponseDataWithDefaults() *RoleCreateResponseData
NewRoleCreateResponseDataWithDefaults instantiates a new RoleCreateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleCreateResponseData) GetAttributes() RoleCreateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetAttributesOk() (*RoleCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleCreateResponseData) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleCreateResponseData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleCreateResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RoleCreateResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RoleCreateResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleCreateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleCreateResponseData) SetAttributes(v RoleCreateAttributes)
SetAttributes gets a reference to the given RoleCreateAttributes and assigns it to the Attributes field.
func (o *RoleCreateResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RoleCreateResponseData) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *RoleCreateResponseData) SetType(v RolesType)
SetType sets field value.
func (o *RoleCreateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleRelationships Relationships of the role object.
type RoleRelationships struct {
// Relationship to multiple permissions objects.
Permissions *RelationshipToPermissions `json:"permissions,omitempty"`
// Relationship to users.
Users *RelationshipToUsers `json:"users,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleRelationships() *RoleRelationships
NewRoleRelationships instantiates a new RoleRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleRelationshipsWithDefaults() *RoleRelationships
NewRoleRelationshipsWithDefaults instantiates a new RoleRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleRelationships) GetPermissions() RelationshipToPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *RoleRelationships) GetPermissionsOk() (*RelationshipToPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleRelationships) GetUsers() RelationshipToUsers
GetUsers returns the Users field value if set, zero value otherwise.
func (o *RoleRelationships) GetUsersOk() (*RelationshipToUsers, bool)
GetUsersOk returns a tuple with the Users field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleRelationships) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o *RoleRelationships) HasUsers() bool
HasUsers returns a boolean if a field has been set.
func (o RoleRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleRelationships) SetPermissions(v RelationshipToPermissions)
SetPermissions gets a reference to the given RelationshipToPermissions and assigns it to the Permissions field.
func (o *RoleRelationships) SetUsers(v RelationshipToUsers)
SetUsers gets a reference to the given RelationshipToUsers and assigns it to the Users field.
func (o *RoleRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleResponse Response containing information about a single role.
type RoleResponse struct {
// Role object returned by the API.
Data *Role `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleResponse() *RoleResponse
NewRoleResponse instantiates a new RoleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleResponseWithDefaults() *RoleResponse
NewRoleResponseWithDefaults instantiates a new RoleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleResponse) GetData() Role
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleResponse) GetDataOk() (*Role, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleResponse) SetData(v Role)
SetData gets a reference to the given Role and assigns it to the Data field.
func (o *RoleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleResponseRelationships Relationships of the role object returned by the API.
type RoleResponseRelationships struct {
// Relationship to multiple permissions objects.
Permissions *RelationshipToPermissions `json:"permissions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleResponseRelationships() *RoleResponseRelationships
NewRoleResponseRelationships instantiates a new RoleResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleResponseRelationshipsWithDefaults() *RoleResponseRelationships
NewRoleResponseRelationshipsWithDefaults instantiates a new RoleResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleResponseRelationships) GetPermissions() RelationshipToPermissions
GetPermissions returns the Permissions field value if set, zero value otherwise.
func (o *RoleResponseRelationships) GetPermissionsOk() (*RelationshipToPermissions, bool)
GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleResponseRelationships) HasPermissions() bool
HasPermissions returns a boolean if a field has been set.
func (o RoleResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleResponseRelationships) SetPermissions(v RelationshipToPermissions)
SetPermissions gets a reference to the given RelationshipToPermissions and assigns it to the Permissions field.
func (o *RoleResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateAttributes Attributes of the role.
type RoleUpdateAttributes struct {
// Creation time of the role.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of last role modification.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the role.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateAttributes() *RoleUpdateAttributes
NewRoleUpdateAttributes instantiates a new RoleUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateAttributesWithDefaults() *RoleUpdateAttributes
NewRoleUpdateAttributesWithDefaults instantiates a new RoleUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *RoleUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *RoleUpdateAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *RoleUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o RoleUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RoleUpdateAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *RoleUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *RoleUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateData Data related to the update of a role.
type RoleUpdateData struct {
// Attributes of the role.
Attributes RoleUpdateAttributes `json:"attributes"`
// The unique identifier of the role.
Id string `json:"id"`
// Relationships of the role object.
Relationships *RoleRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateData(attributes RoleUpdateAttributes, id string, typeVar RolesType) *RoleUpdateData
NewRoleUpdateData instantiates a new RoleUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateDataWithDefaults() *RoleUpdateData
NewRoleUpdateDataWithDefaults instantiates a new RoleUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateData) GetAttributes() RoleUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *RoleUpdateData) GetAttributesOk() (*RoleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetId() string
GetId returns the Id field value.
func (o *RoleUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetRelationships() RoleRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleUpdateData) GetRelationshipsOk() (*RoleRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleUpdateData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleUpdateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateData) SetAttributes(v RoleUpdateAttributes)
SetAttributes sets field value.
func (o *RoleUpdateData) SetId(v string)
SetId sets field value.
func (o *RoleUpdateData) SetRelationships(v RoleRelationships)
SetRelationships gets a reference to the given RoleRelationships and assigns it to the Relationships field.
func (o *RoleUpdateData) SetType(v RolesType)
SetType sets field value.
func (o *RoleUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateRequest Update a role.
type RoleUpdateRequest struct {
// Data related to the update of a role.
Data RoleUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateRequest(data RoleUpdateData) *RoleUpdateRequest
NewRoleUpdateRequest instantiates a new RoleUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateRequestWithDefaults() *RoleUpdateRequest
NewRoleUpdateRequestWithDefaults instantiates a new RoleUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateRequest) GetData() RoleUpdateData
GetData returns the Data field value.
func (o *RoleUpdateRequest) GetDataOk() (*RoleUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o RoleUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateRequest) SetData(v RoleUpdateData)
SetData sets field value.
func (o *RoleUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateResponse Response containing information about an updated role.
type RoleUpdateResponse struct {
// Role object returned by the API.
Data *RoleUpdateResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateResponse() *RoleUpdateResponse
NewRoleUpdateResponse instantiates a new RoleUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateResponseWithDefaults() *RoleUpdateResponse
NewRoleUpdateResponseWithDefaults instantiates a new RoleUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateResponse) GetData() RoleUpdateResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *RoleUpdateResponse) GetDataOk() (*RoleUpdateResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o RoleUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateResponse) SetData(v RoleUpdateResponseData)
SetData gets a reference to the given RoleUpdateResponseData and assigns it to the Data field.
func (o *RoleUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RoleUpdateResponseData Role object returned by the API.
type RoleUpdateResponseData struct {
// Attributes of the role.
Attributes *RoleUpdateAttributes `json:"attributes,omitempty"`
// The unique identifier of the role.
Id *string `json:"id,omitempty"`
// Relationships of the role object returned by the API.
Relationships *RoleResponseRelationships `json:"relationships,omitempty"`
// Roles type.
Type RolesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRoleUpdateResponseData(typeVar RolesType) *RoleUpdateResponseData
NewRoleUpdateResponseData instantiates a new RoleUpdateResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRoleUpdateResponseDataWithDefaults() *RoleUpdateResponseData
NewRoleUpdateResponseDataWithDefaults instantiates a new RoleUpdateResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RoleUpdateResponseData) GetAttributes() RoleUpdateAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetAttributesOk() (*RoleUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetRelationships() RoleResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *RoleUpdateResponseData) GetRelationshipsOk() (*RoleResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) GetType() RolesType
GetType returns the Type field value.
func (o *RoleUpdateResponseData) GetTypeOk() (*RolesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *RoleUpdateResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *RoleUpdateResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *RoleUpdateResponseData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o RoleUpdateResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RoleUpdateResponseData) SetAttributes(v RoleUpdateAttributes)
SetAttributes gets a reference to the given RoleUpdateAttributes and assigns it to the Attributes field.
func (o *RoleUpdateResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *RoleUpdateResponseData) SetRelationships(v RoleResponseRelationships)
SetRelationships gets a reference to the given RoleResponseRelationships and assigns it to the Relationships field.
func (o *RoleUpdateResponseData) SetType(v RolesType)
SetType sets field value.
func (o *RoleUpdateResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RolesApi service type
type RolesApi datadog.Service
func NewRolesApi(client *datadog.APIClient) *RolesApi
NewRolesApi Returns NewRolesApi.
func (a *RolesApi) AddPermissionToRole(ctx _context.Context, roleId string, body RelationshipToPermission) (PermissionsResponse, *_nethttp.Response, error)
AddPermissionToRole Grant permission to a role. Adds a permission to a role.
func (a *RolesApi) AddUserToRole(ctx _context.Context, roleId string, body RelationshipToUser) (UsersResponse, *_nethttp.Response, error)
AddUserToRole Add a user to a role. Adds a user to a role.
func (a *RolesApi) CloneRole(ctx _context.Context, roleId string, body RoleCloneRequest) (RoleResponse, *_nethttp.Response, error)
CloneRole Create a new role by cloning an existing role. Clone an existing role
func (a *RolesApi) CreateRole(ctx _context.Context, body RoleCreateRequest) (RoleCreateResponse, *_nethttp.Response, error)
CreateRole Create role. Create a new role for your organization.
func (a *RolesApi) DeleteRole(ctx _context.Context, roleId string) (*_nethttp.Response, error)
DeleteRole Delete role. Disables a role.
func (a *RolesApi) GetRole(ctx _context.Context, roleId string) (RoleResponse, *_nethttp.Response, error)
GetRole Get a role. Get a role in the organization specified by the role’s `role_id`.
func (a *RolesApi) ListPermissions(ctx _context.Context) (PermissionsResponse, *_nethttp.Response, error)
ListPermissions List permissions. Returns a list of all permissions, including name, description, and ID.
func (a *RolesApi) ListRolePermissions(ctx _context.Context, roleId string) (PermissionsResponse, *_nethttp.Response, error)
ListRolePermissions List permissions for a role. Returns a list of all permissions for a single role.
func (a *RolesApi) ListRoleUsers(ctx _context.Context, roleId string, o ...ListRoleUsersOptionalParameters) (UsersResponse, *_nethttp.Response, error)
ListRoleUsers Get all users of a role. Gets all users of a role.
func (a *RolesApi) ListRoles(ctx _context.Context, o ...ListRolesOptionalParameters) (RolesResponse, *_nethttp.Response, error)
ListRoles List roles. Returns all roles, including their names and their unique identifiers.
func (a *RolesApi) RemovePermissionFromRole(ctx _context.Context, roleId string, body RelationshipToPermission) (PermissionsResponse, *_nethttp.Response, error)
RemovePermissionFromRole Revoke permission. Removes a permission from a role.
func (a *RolesApi) RemoveUserFromRole(ctx _context.Context, roleId string, body RelationshipToUser) (UsersResponse, *_nethttp.Response, error)
RemoveUserFromRole Remove a user from a role. Removes a user from a role.
func (a *RolesApi) UpdateRole(ctx _context.Context, roleId string, body RoleUpdateRequest) (RoleUpdateResponse, *_nethttp.Response, error)
UpdateRole Update a role. Edit a role. Can only be used with application keys belonging to administrators.
RolesResponse Response containing information about multiple roles.
type RolesResponse struct {
// Array of returned roles.
Data []Role `json:"data,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewRolesResponse() *RolesResponse
NewRolesResponse instantiates a new RolesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewRolesResponseWithDefaults() *RolesResponse
NewRolesResponseWithDefaults instantiates a new RolesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *RolesResponse) GetData() []Role
GetData returns the Data field value if set, zero value otherwise.
func (o *RolesResponse) GetDataOk() (*[]Role, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RolesResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *RolesResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *RolesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *RolesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o RolesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *RolesResponse) SetData(v []Role)
SetData gets a reference to the given []Role and assigns it to the Data field.
func (o *RolesResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *RolesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
RolesSort Sorting options for roles.
type RolesSort string
List of RolesSort.
const (
ROLESSORT_NAME_ASCENDING RolesSort = "name"
ROLESSORT_NAME_DESCENDING RolesSort = "-name"
ROLESSORT_MODIFIED_AT_ASCENDING RolesSort = "modified_at"
ROLESSORT_MODIFIED_AT_DESCENDING RolesSort = "-modified_at"
ROLESSORT_USER_COUNT_ASCENDING RolesSort = "user_count"
ROLESSORT_USER_COUNT_DESCENDING RolesSort = "-user_count"
)
func NewRolesSortFromValue(v string) (*RolesSort, error)
NewRolesSortFromValue returns a pointer to a valid RolesSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RolesSort) GetAllowedValues() []RolesSort
GetAllowedValues reeturns the list of possible values.
func (v RolesSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RolesSort) Ptr() *RolesSort
Ptr returns reference to RolesSort value.
func (v *RolesSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
RolesType Roles type.
type RolesType string
List of RolesType.
const (
ROLESTYPE_ROLES RolesType = "roles"
)
func NewRolesTypeFromValue(v string) (*RolesType, error)
NewRolesTypeFromValue returns a pointer to a valid RolesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *RolesType) GetAllowedValues() []RolesType
GetAllowedValues reeturns the list of possible values.
func (v RolesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v RolesType) Ptr() *RolesType
Ptr returns reference to RolesType value.
func (v *RolesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttribute SAML assertion attribute.
type SAMLAssertionAttribute struct {
// Key/Value pair of attributes used in SAML assertion attributes.
Attributes *SAMLAssertionAttributeAttributes `json:"attributes,omitempty"`
// The ID of the SAML assertion attribute.
Id string `json:"id"`
// SAML assertion attributes resource type.
Type SAMLAssertionAttributesType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSAMLAssertionAttribute(id string, typeVar SAMLAssertionAttributesType) *SAMLAssertionAttribute
NewSAMLAssertionAttribute instantiates a new SAMLAssertionAttribute object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSAMLAssertionAttributeWithDefaults() *SAMLAssertionAttribute
NewSAMLAssertionAttributeWithDefaults instantiates a new SAMLAssertionAttribute object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SAMLAssertionAttribute) GetAttributes() SAMLAssertionAttributeAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SAMLAssertionAttribute) GetAttributesOk() (*SAMLAssertionAttributeAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) GetId() string
GetId returns the Id field value.
func (o *SAMLAssertionAttribute) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) GetType() SAMLAssertionAttributesType
GetType returns the Type field value.
func (o *SAMLAssertionAttribute) GetTypeOk() (*SAMLAssertionAttributesType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *SAMLAssertionAttribute) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o SAMLAssertionAttribute) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SAMLAssertionAttribute) SetAttributes(v SAMLAssertionAttributeAttributes)
SetAttributes gets a reference to the given SAMLAssertionAttributeAttributes and assigns it to the Attributes field.
func (o *SAMLAssertionAttribute) SetId(v string)
SetId sets field value.
func (o *SAMLAssertionAttribute) SetType(v SAMLAssertionAttributesType)
SetType sets field value.
func (o *SAMLAssertionAttribute) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttributeAttributes Key/Value pair of attributes used in SAML assertion attributes.
type SAMLAssertionAttributeAttributes struct {
// Key portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeKey *string `json:"attribute_key,omitempty"`
// Value portion of a key/value pair of the attribute sent from the Identity Provider.
AttributeValue *string `json:"attribute_value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSAMLAssertionAttributeAttributes() *SAMLAssertionAttributeAttributes
NewSAMLAssertionAttributeAttributes instantiates a new SAMLAssertionAttributeAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSAMLAssertionAttributeAttributesWithDefaults() *SAMLAssertionAttributeAttributes
NewSAMLAssertionAttributeAttributesWithDefaults instantiates a new SAMLAssertionAttributeAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SAMLAssertionAttributeAttributes) GetAttributeKey() string
GetAttributeKey returns the AttributeKey field value if set, zero value otherwise.
func (o *SAMLAssertionAttributeAttributes) GetAttributeKeyOk() (*string, bool)
GetAttributeKeyOk returns a tuple with the AttributeKey field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttributeAttributes) GetAttributeValue() string
GetAttributeValue returns the AttributeValue field value if set, zero value otherwise.
func (o *SAMLAssertionAttributeAttributes) GetAttributeValueOk() (*string, bool)
GetAttributeValueOk returns a tuple with the AttributeValue field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SAMLAssertionAttributeAttributes) HasAttributeKey() bool
HasAttributeKey returns a boolean if a field has been set.
func (o *SAMLAssertionAttributeAttributes) HasAttributeValue() bool
HasAttributeValue returns a boolean if a field has been set.
func (o SAMLAssertionAttributeAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SAMLAssertionAttributeAttributes) SetAttributeKey(v string)
SetAttributeKey gets a reference to the given string and assigns it to the AttributeKey field.
func (o *SAMLAssertionAttributeAttributes) SetAttributeValue(v string)
SetAttributeValue gets a reference to the given string and assigns it to the AttributeValue field.
func (o *SAMLAssertionAttributeAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SAMLAssertionAttributesType SAML assertion attributes resource type.
type SAMLAssertionAttributesType string
List of SAMLAssertionAttributesType.
const (
SAMLASSERTIONATTRIBUTESTYPE_SAML_ASSERTION_ATTRIBUTES SAMLAssertionAttributesType = "saml_assertion_attributes"
)
func NewSAMLAssertionAttributesTypeFromValue(v string) (*SAMLAssertionAttributesType, error)
NewSAMLAssertionAttributesTypeFromValue returns a pointer to a valid SAMLAssertionAttributesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SAMLAssertionAttributesType) GetAllowedValues() []SAMLAssertionAttributesType
GetAllowedValues reeturns the list of possible values.
func (v SAMLAssertionAttributesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SAMLAssertionAttributesType) Ptr() *SAMLAssertionAttributesType
Ptr returns reference to SAMLAssertionAttributesType value.
func (v *SAMLAssertionAttributesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SearchAuditLogsOptionalParameters holds optional parameters for SearchAuditLogs.
type SearchAuditLogsOptionalParameters struct {
Body *AuditLogsSearchEventsRequest
}
func NewSearchAuditLogsOptionalParameters() *SearchAuditLogsOptionalParameters
NewSearchAuditLogsOptionalParameters creates an empty struct for parameters.
func (r *SearchAuditLogsOptionalParameters) WithBody(body AuditLogsSearchEventsRequest) *SearchAuditLogsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchEventsOptionalParameters holds optional parameters for SearchEvents.
type SearchEventsOptionalParameters struct {
Body *EventsListRequest
}
func NewSearchEventsOptionalParameters() *SearchEventsOptionalParameters
NewSearchEventsOptionalParameters creates an empty struct for parameters.
func (r *SearchEventsOptionalParameters) WithBody(body EventsListRequest) *SearchEventsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SearchSecurityMonitoringSignalsOptionalParameters holds optional parameters for SearchSecurityMonitoringSignals.
type SearchSecurityMonitoringSignalsOptionalParameters struct {
Body *SecurityMonitoringSignalListRequest
}
func NewSearchSecurityMonitoringSignalsOptionalParameters() *SearchSecurityMonitoringSignalsOptionalParameters
NewSearchSecurityMonitoringSignalsOptionalParameters creates an empty struct for parameters.
func (r *SearchSecurityMonitoringSignalsOptionalParameters) WithBody(body SecurityMonitoringSignalListRequest) *SearchSecurityMonitoringSignalsOptionalParameters
WithBody sets the corresponding parameter name and returns the struct.
SecurityFilter The security filter's properties.
type SecurityFilter struct {
// The object describing a security filter.
Attributes *SecurityFilterAttributes `json:"attributes,omitempty"`
// The ID of the security filter.
Id *string `json:"id,omitempty"`
// The type of the resource. The value should always be `security_filters`.
Type *SecurityFilterType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilter() *SecurityFilter
NewSecurityFilter instantiates a new SecurityFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterWithDefaults() *SecurityFilter
NewSecurityFilterWithDefaults instantiates a new SecurityFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilter) GetAttributes() SecurityFilterAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityFilter) GetAttributesOk() (*SecurityFilterAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityFilter) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) GetType() SecurityFilterType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityFilter) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilter) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityFilter) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityFilter) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilter) SetAttributes(v SecurityFilterAttributes)
SetAttributes gets a reference to the given SecurityFilterAttributes and assigns it to the Attributes field.
func (o *SecurityFilter) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityFilter) SetType(v SecurityFilterType)
SetType gets a reference to the given SecurityFilterType and assigns it to the Type field.
func (o *SecurityFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterAttributes The object describing a security filter.
type SecurityFilterAttributes struct {
// The list of exclusion filters applied in this security filter.
ExclusionFilters []SecurityFilterExclusionFilterResponse `json:"exclusion_filters,omitempty"`
// The filtered data type.
FilteredDataType *SecurityFilterFilteredDataType `json:"filtered_data_type,omitempty"`
// Whether the security filter is the built-in filter.
IsBuiltin *bool `json:"is_builtin,omitempty"`
// Whether the security filter is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// The security filter name.
Name *string `json:"name,omitempty"`
// The security filter query. Logs accepted by this query will be accepted by this filter.
Query *string `json:"query,omitempty"`
// The version of the security filter.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterAttributes() *SecurityFilterAttributes
NewSecurityFilterAttributes instantiates a new SecurityFilterAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterAttributesWithDefaults() *SecurityFilterAttributes
NewSecurityFilterAttributesWithDefaults instantiates a new SecurityFilterAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterAttributes) GetExclusionFilters() []SecurityFilterExclusionFilterResponse
GetExclusionFilters returns the ExclusionFilters field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilterResponse, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetIsBuiltin() bool
GetIsBuiltin returns the IsBuiltin field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetIsBuiltinOk() (*bool, bool)
GetIsBuiltinOk returns a tuple with the IsBuiltin field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityFilterAttributes) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterAttributes) HasExclusionFilters() bool
HasExclusionFilters returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasFilteredDataType() bool
HasFilteredDataType returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasIsBuiltin() bool
HasIsBuiltin returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityFilterAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityFilterAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilterResponse)
SetExclusionFilters gets a reference to the given []SecurityFilterExclusionFilterResponse and assigns it to the ExclusionFilters field.
func (o *SecurityFilterAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType gets a reference to the given SecurityFilterFilteredDataType and assigns it to the FilteredDataType field.
func (o *SecurityFilterAttributes) SetIsBuiltin(v bool)
SetIsBuiltin gets a reference to the given bool and assigns it to the IsBuiltin field.
func (o *SecurityFilterAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityFilterAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterAttributes) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterAttributes) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityFilterAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateAttributes Object containing the attributes of the security filter to be created.
type SecurityFilterCreateAttributes struct {
// Exclusion filters to exclude some logs from the security filter.
ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters"`
// The filtered data type.
FilteredDataType SecurityFilterFilteredDataType `json:"filtered_data_type"`
// Whether the security filter is enabled.
IsEnabled bool `json:"is_enabled"`
// The name of the security filter.
Name string `json:"name"`
// The query of the security filter.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateAttributes(exclusionFilters []SecurityFilterExclusionFilter, filteredDataType SecurityFilterFilteredDataType, isEnabled bool, name string, query string) *SecurityFilterCreateAttributes
NewSecurityFilterCreateAttributes instantiates a new SecurityFilterCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateAttributesWithDefaults() *SecurityFilterCreateAttributes
NewSecurityFilterCreateAttributesWithDefaults instantiates a new SecurityFilterCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateAttributes) GetExclusionFilters() []SecurityFilterExclusionFilter
GetExclusionFilters returns the ExclusionFilters field value.
func (o *SecurityFilterCreateAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilter, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value.
func (o *SecurityFilterCreateAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityFilterCreateAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetName() string
GetName returns the Name field value.
func (o *SecurityFilterCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateAttributes) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityFilterCreateAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilter)
SetExclusionFilters sets field value.
func (o *SecurityFilterCreateAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType sets field value.
func (o *SecurityFilterCreateAttributes) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityFilterCreateAttributes) SetName(v string)
SetName sets field value.
func (o *SecurityFilterCreateAttributes) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityFilterCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateData Object for a single security filter.
type SecurityFilterCreateData struct {
// Object containing the attributes of the security filter to be created.
Attributes SecurityFilterCreateAttributes `json:"attributes"`
// The type of the resource. The value should always be `security_filters`.
Type SecurityFilterType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateData(attributes SecurityFilterCreateAttributes, typeVar SecurityFilterType) *SecurityFilterCreateData
NewSecurityFilterCreateData instantiates a new SecurityFilterCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateDataWithDefaults() *SecurityFilterCreateData
NewSecurityFilterCreateDataWithDefaults instantiates a new SecurityFilterCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateData) GetAttributes() SecurityFilterCreateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityFilterCreateData) GetAttributesOk() (*SecurityFilterCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SecurityFilterCreateData) GetType() SecurityFilterType
GetType returns the Type field value.
func (o *SecurityFilterCreateData) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateData) SetAttributes(v SecurityFilterCreateAttributes)
SetAttributes sets field value.
func (o *SecurityFilterCreateData) SetType(v SecurityFilterType)
SetType sets field value.
func (o *SecurityFilterCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterCreateRequest Request object that includes the security filter that you would like to create.
type SecurityFilterCreateRequest struct {
// Object for a single security filter.
Data SecurityFilterCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterCreateRequest(data SecurityFilterCreateData) *SecurityFilterCreateRequest
NewSecurityFilterCreateRequest instantiates a new SecurityFilterCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterCreateRequestWithDefaults() *SecurityFilterCreateRequest
NewSecurityFilterCreateRequestWithDefaults instantiates a new SecurityFilterCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterCreateRequest) GetData() SecurityFilterCreateData
GetData returns the Data field value.
func (o *SecurityFilterCreateRequest) GetDataOk() (*SecurityFilterCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityFilterCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterCreateRequest) SetData(v SecurityFilterCreateData)
SetData sets field value.
func (o *SecurityFilterCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterExclusionFilter Exclusion filter for the security filter.
type SecurityFilterExclusionFilter struct {
// Exclusion filter name.
Name string `json:"name"`
// Exclusion filter query. Logs that match this query are excluded from the security filter.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterExclusionFilter(name string, query string) *SecurityFilterExclusionFilter
NewSecurityFilterExclusionFilter instantiates a new SecurityFilterExclusionFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterExclusionFilterWithDefaults() *SecurityFilterExclusionFilter
NewSecurityFilterExclusionFilterWithDefaults instantiates a new SecurityFilterExclusionFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterExclusionFilter) GetName() string
GetName returns the Name field value.
func (o *SecurityFilterExclusionFilter) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilter) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityFilterExclusionFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o SecurityFilterExclusionFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterExclusionFilter) SetName(v string)
SetName sets field value.
func (o *SecurityFilterExclusionFilter) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityFilterExclusionFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterExclusionFilterResponse A single exclusion filter.
type SecurityFilterExclusionFilterResponse struct {
// The exclusion filter name.
Name *string `json:"name,omitempty"`
// The exclusion filter query.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterExclusionFilterResponse() *SecurityFilterExclusionFilterResponse
NewSecurityFilterExclusionFilterResponse instantiates a new SecurityFilterExclusionFilterResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterExclusionFilterResponseWithDefaults() *SecurityFilterExclusionFilterResponse
NewSecurityFilterExclusionFilterResponseWithDefaults instantiates a new SecurityFilterExclusionFilterResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterExclusionFilterResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterExclusionFilterResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilterResponse) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterExclusionFilterResponse) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterExclusionFilterResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterExclusionFilterResponse) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SecurityFilterExclusionFilterResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterExclusionFilterResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterExclusionFilterResponse) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterExclusionFilterResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterFilteredDataType The filtered data type.
type SecurityFilterFilteredDataType string
List of SecurityFilterFilteredDataType.
const (
SECURITYFILTERFILTEREDDATATYPE_LOGS SecurityFilterFilteredDataType = "logs"
)
func NewSecurityFilterFilteredDataTypeFromValue(v string) (*SecurityFilterFilteredDataType, error)
NewSecurityFilterFilteredDataTypeFromValue returns a pointer to a valid SecurityFilterFilteredDataType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityFilterFilteredDataType) GetAllowedValues() []SecurityFilterFilteredDataType
GetAllowedValues reeturns the list of possible values.
func (v SecurityFilterFilteredDataType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityFilterFilteredDataType) Ptr() *SecurityFilterFilteredDataType
Ptr returns reference to SecurityFilterFilteredDataType value.
func (v *SecurityFilterFilteredDataType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityFilterMeta Optional metadata associated to the response.
type SecurityFilterMeta struct {
// A warning message.
Warning *string `json:"warning,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterMeta() *SecurityFilterMeta
NewSecurityFilterMeta instantiates a new SecurityFilterMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterMetaWithDefaults() *SecurityFilterMeta
NewSecurityFilterMetaWithDefaults instantiates a new SecurityFilterMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterMeta) GetWarning() string
GetWarning returns the Warning field value if set, zero value otherwise.
func (o *SecurityFilterMeta) GetWarningOk() (*string, bool)
GetWarningOk returns a tuple with the Warning field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterMeta) HasWarning() bool
HasWarning returns a boolean if a field has been set.
func (o SecurityFilterMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterMeta) SetWarning(v string)
SetWarning gets a reference to the given string and assigns it to the Warning field.
func (o *SecurityFilterMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterResponse Response object which includes a single security filter.
type SecurityFilterResponse struct {
// The security filter's properties.
Data *SecurityFilter `json:"data,omitempty"`
// Optional metadata associated to the response.
Meta *SecurityFilterMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterResponse() *SecurityFilterResponse
NewSecurityFilterResponse instantiates a new SecurityFilterResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterResponseWithDefaults() *SecurityFilterResponse
NewSecurityFilterResponseWithDefaults instantiates a new SecurityFilterResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterResponse) GetData() SecurityFilter
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityFilterResponse) GetDataOk() (*SecurityFilter, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterResponse) GetMeta() SecurityFilterMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityFilterResponse) GetMetaOk() (*SecurityFilterMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityFilterResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityFilterResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterResponse) SetData(v SecurityFilter)
SetData gets a reference to the given SecurityFilter and assigns it to the Data field.
func (o *SecurityFilterResponse) SetMeta(v SecurityFilterMeta)
SetMeta gets a reference to the given SecurityFilterMeta and assigns it to the Meta field.
func (o *SecurityFilterResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterType The type of the resource. The value should always be `security_filters`.
type SecurityFilterType string
List of SecurityFilterType.
const (
SECURITYFILTERTYPE_SECURITY_FILTERS SecurityFilterType = "security_filters"
)
func NewSecurityFilterTypeFromValue(v string) (*SecurityFilterType, error)
NewSecurityFilterTypeFromValue returns a pointer to a valid SecurityFilterType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityFilterType) GetAllowedValues() []SecurityFilterType
GetAllowedValues reeturns the list of possible values.
func (v SecurityFilterType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityFilterType) Ptr() *SecurityFilterType
Ptr returns reference to SecurityFilterType value.
func (v *SecurityFilterType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateAttributes The security filters properties to be updated.
type SecurityFilterUpdateAttributes struct {
// Exclusion filters to exclude some logs from the security filter.
ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters,omitempty"`
// The filtered data type.
FilteredDataType *SecurityFilterFilteredDataType `json:"filtered_data_type,omitempty"`
// Whether the security filter is enabled.
IsEnabled *bool `json:"is_enabled,omitempty"`
// The name of the security filter.
Name *string `json:"name,omitempty"`
// The query of the security filter.
Query *string `json:"query,omitempty"`
// The version of the security filter to update.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateAttributes() *SecurityFilterUpdateAttributes
NewSecurityFilterUpdateAttributes instantiates a new SecurityFilterUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateAttributesWithDefaults() *SecurityFilterUpdateAttributes
NewSecurityFilterUpdateAttributesWithDefaults instantiates a new SecurityFilterUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateAttributes) GetExclusionFilters() []SecurityFilterExclusionFilter
GetExclusionFilters returns the ExclusionFilters field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetExclusionFiltersOk() (*[]SecurityFilterExclusionFilter, bool)
GetExclusionFiltersOk returns a tuple with the ExclusionFilters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetFilteredDataType() SecurityFilterFilteredDataType
GetFilteredDataType returns the FilteredDataType field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetFilteredDataTypeOk() (*SecurityFilterFilteredDataType, bool)
GetFilteredDataTypeOk returns a tuple with the FilteredDataType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityFilterUpdateAttributes) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateAttributes) HasExclusionFilters() bool
HasExclusionFilters returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasFilteredDataType() bool
HasFilteredDataType returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityFilterUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityFilterUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateAttributes) SetExclusionFilters(v []SecurityFilterExclusionFilter)
SetExclusionFilters gets a reference to the given []SecurityFilterExclusionFilter and assigns it to the ExclusionFilters field.
func (o *SecurityFilterUpdateAttributes) SetFilteredDataType(v SecurityFilterFilteredDataType)
SetFilteredDataType gets a reference to the given SecurityFilterFilteredDataType and assigns it to the FilteredDataType field.
func (o *SecurityFilterUpdateAttributes) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityFilterUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityFilterUpdateAttributes) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityFilterUpdateAttributes) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityFilterUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateData The new security filter properties.
type SecurityFilterUpdateData struct {
// The security filters properties to be updated.
Attributes SecurityFilterUpdateAttributes `json:"attributes"`
// The type of the resource. The value should always be `security_filters`.
Type SecurityFilterType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateData(attributes SecurityFilterUpdateAttributes, typeVar SecurityFilterType) *SecurityFilterUpdateData
NewSecurityFilterUpdateData instantiates a new SecurityFilterUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateDataWithDefaults() *SecurityFilterUpdateData
NewSecurityFilterUpdateDataWithDefaults instantiates a new SecurityFilterUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateData) GetAttributes() SecurityFilterUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityFilterUpdateData) GetAttributesOk() (*SecurityFilterUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *SecurityFilterUpdateData) GetType() SecurityFilterType
GetType returns the Type field value.
func (o *SecurityFilterUpdateData) GetTypeOk() (*SecurityFilterType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o SecurityFilterUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateData) SetAttributes(v SecurityFilterUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityFilterUpdateData) SetType(v SecurityFilterType)
SetType sets field value.
func (o *SecurityFilterUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFilterUpdateRequest The new security filter body.
type SecurityFilterUpdateRequest struct {
// The new security filter properties.
Data SecurityFilterUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFilterUpdateRequest(data SecurityFilterUpdateData) *SecurityFilterUpdateRequest
NewSecurityFilterUpdateRequest instantiates a new SecurityFilterUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFilterUpdateRequestWithDefaults() *SecurityFilterUpdateRequest
NewSecurityFilterUpdateRequestWithDefaults instantiates a new SecurityFilterUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFilterUpdateRequest) GetData() SecurityFilterUpdateData
GetData returns the Data field value.
func (o *SecurityFilterUpdateRequest) GetDataOk() (*SecurityFilterUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityFilterUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFilterUpdateRequest) SetData(v SecurityFilterUpdateData)
SetData sets field value.
func (o *SecurityFilterUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityFiltersResponse All the available security filters objects.
type SecurityFiltersResponse struct {
// A list of security filters objects.
Data []SecurityFilter `json:"data,omitempty"`
// Optional metadata associated to the response.
Meta *SecurityFilterMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityFiltersResponse() *SecurityFiltersResponse
NewSecurityFiltersResponse instantiates a new SecurityFiltersResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityFiltersResponseWithDefaults() *SecurityFiltersResponse
NewSecurityFiltersResponseWithDefaults instantiates a new SecurityFiltersResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityFiltersResponse) GetData() []SecurityFilter
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityFiltersResponse) GetDataOk() (*[]SecurityFilter, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFiltersResponse) GetMeta() SecurityFilterMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityFiltersResponse) GetMetaOk() (*SecurityFilterMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityFiltersResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityFiltersResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityFiltersResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityFiltersResponse) SetData(v []SecurityFilter)
SetData gets a reference to the given []SecurityFilter and assigns it to the Data field.
func (o *SecurityFiltersResponse) SetMeta(v SecurityFilterMeta)
SetMeta gets a reference to the given SecurityFilterMeta and assigns it to the Meta field.
func (o *SecurityFiltersResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringApi service type
type SecurityMonitoringApi datadog.Service
func NewSecurityMonitoringApi(client *datadog.APIClient) *SecurityMonitoringApi
NewSecurityMonitoringApi Returns NewSecurityMonitoringApi.
func (a *SecurityMonitoringApi) CreateSecurityFilter(ctx _context.Context, body SecurityFilterCreateRequest) (SecurityFilterResponse, *_nethttp.Response, error)
CreateSecurityFilter Create a security filter. Create a security filter.
See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples.
func (a *SecurityMonitoringApi) CreateSecurityMonitoringRule(ctx _context.Context, body SecurityMonitoringRuleCreatePayload) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
CreateSecurityMonitoringRule Create a detection rule. Create a detection rule.
func (a *SecurityMonitoringApi) DeleteSecurityFilter(ctx _context.Context, securityFilterId string) (*_nethttp.Response, error)
DeleteSecurityFilter Delete a security filter. Delete a specific security filter.
func (a *SecurityMonitoringApi) DeleteSecurityMonitoringRule(ctx _context.Context, ruleId string) (*_nethttp.Response, error)
DeleteSecurityMonitoringRule Delete an existing rule. Delete an existing rule. Default rules cannot be deleted.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalAssignee(ctx _context.Context, signalId string, body SecurityMonitoringSignalAssigneeUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalAssignee Modify the triage assignee of a security signal. Modify the triage assignee of a security signal.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalIncidents(ctx _context.Context, signalId string, body SecurityMonitoringSignalIncidentsUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalIncidents Change the related incidents of a security signal. Change the related incidents for a security signal.
func (a *SecurityMonitoringApi) EditSecurityMonitoringSignalState(ctx _context.Context, signalId string, body SecurityMonitoringSignalStateUpdateRequest) (SecurityMonitoringSignalTriageUpdateResponse, *_nethttp.Response, error)
EditSecurityMonitoringSignalState Change the triage state of a security signal. Change the triage state of a security signal.
func (a *SecurityMonitoringApi) GetSecurityFilter(ctx _context.Context, securityFilterId string) (SecurityFilterResponse, *_nethttp.Response, error)
GetSecurityFilter Get a security filter. Get the details of a specific security filter.
See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples.
func (a *SecurityMonitoringApi) GetSecurityMonitoringRule(ctx _context.Context, ruleId string) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
GetSecurityMonitoringRule Get a rule's details. Get a rule's details.
func (a *SecurityMonitoringApi) GetSecurityMonitoringSignal(ctx _context.Context, signalId string) (SecurityMonitoringSignal, *_nethttp.Response, error)
GetSecurityMonitoringSignal Get a signal's details. Get a signal's details.
func (a *SecurityMonitoringApi) ListSecurityFilters(ctx _context.Context) (SecurityFiltersResponse, *_nethttp.Response, error)
ListSecurityFilters Get all security filters. Get the list of configured security filters with their definitions.
func (a *SecurityMonitoringApi) ListSecurityMonitoringRules(ctx _context.Context, o ...ListSecurityMonitoringRulesOptionalParameters) (SecurityMonitoringListRulesResponse, *_nethttp.Response, error)
ListSecurityMonitoringRules List rules. List rules.
func (a *SecurityMonitoringApi) ListSecurityMonitoringSignals(ctx _context.Context, o ...ListSecurityMonitoringSignalsOptionalParameters) (SecurityMonitoringSignalsListResponse, *_nethttp.Response, error)
ListSecurityMonitoringSignals Get a quick list of security signals. The list endpoint returns security signals that match a search query. Both this endpoint and the POST endpoint can be used interchangeably when listing security signals.
func (a *SecurityMonitoringApi) ListSecurityMonitoringSignalsWithPagination(ctx _context.Context, o ...ListSecurityMonitoringSignalsOptionalParameters) (<-chan SecurityMonitoringSignal, func(), error)
ListSecurityMonitoringSignalsWithPagination provides a paginated version of ListSecurityMonitoringSignals returning a channel with all items.
func (a *SecurityMonitoringApi) SearchSecurityMonitoringSignals(ctx _context.Context, o ...SearchSecurityMonitoringSignalsOptionalParameters) (SecurityMonitoringSignalsListResponse, *_nethttp.Response, error)
SearchSecurityMonitoringSignals Get a list of security signals. Returns security signals that match a search query. Both this endpoint and the GET endpoint can be used interchangeably for listing security signals.
func (a *SecurityMonitoringApi) SearchSecurityMonitoringSignalsWithPagination(ctx _context.Context, o ...SearchSecurityMonitoringSignalsOptionalParameters) (<-chan SecurityMonitoringSignal, func(), error)
SearchSecurityMonitoringSignalsWithPagination provides a paginated version of SearchSecurityMonitoringSignals returning a channel with all items.
func (a *SecurityMonitoringApi) UpdateSecurityFilter(ctx _context.Context, securityFilterId string, body SecurityFilterUpdateRequest) (SecurityFilterResponse, *_nethttp.Response, error)
UpdateSecurityFilter Update a security filter. Update a specific security filter. Returns the security filter object when the request is successful.
func (a *SecurityMonitoringApi) UpdateSecurityMonitoringRule(ctx _context.Context, ruleId string, body SecurityMonitoringRuleUpdatePayload) (SecurityMonitoringRuleResponse, *_nethttp.Response, error)
UpdateSecurityMonitoringRule Update an existing rule. Update an existing rule. When updating `cases`, `queries` or `options`, the whole field must be included. For example, when modifying a query all queries must be included. Default rules can only be updated to be enabled and to change notifications.
SecurityMonitoringFilter The rule's suppression filter.
type SecurityMonitoringFilter struct {
// The type of filtering action.
Action *SecurityMonitoringFilterAction `json:"action,omitempty"`
// Query for selecting logs to apply the filtering action.
Query *string `json:"query,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringFilter() *SecurityMonitoringFilter
NewSecurityMonitoringFilter instantiates a new SecurityMonitoringFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringFilterWithDefaults() *SecurityMonitoringFilter
NewSecurityMonitoringFilterWithDefaults instantiates a new SecurityMonitoringFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringFilter) GetAction() SecurityMonitoringFilterAction
GetAction returns the Action field value if set, zero value otherwise.
func (o *SecurityMonitoringFilter) GetActionOk() (*SecurityMonitoringFilterAction, bool)
GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityMonitoringFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringFilter) HasAction() bool
HasAction returns a boolean if a field has been set.
func (o *SecurityMonitoringFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o SecurityMonitoringFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringFilter) SetAction(v SecurityMonitoringFilterAction)
SetAction gets a reference to the given SecurityMonitoringFilterAction and assigns it to the Action field.
func (o *SecurityMonitoringFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityMonitoringFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringFilterAction The type of filtering action.
type SecurityMonitoringFilterAction string
List of SecurityMonitoringFilterAction.
const (
SECURITYMONITORINGFILTERACTION_REQUIRE SecurityMonitoringFilterAction = "require"
SECURITYMONITORINGFILTERACTION_SUPPRESS SecurityMonitoringFilterAction = "suppress"
)
func NewSecurityMonitoringFilterActionFromValue(v string) (*SecurityMonitoringFilterAction, error)
NewSecurityMonitoringFilterActionFromValue returns a pointer to a valid SecurityMonitoringFilterAction for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringFilterAction) GetAllowedValues() []SecurityMonitoringFilterAction
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringFilterAction) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringFilterAction) Ptr() *SecurityMonitoringFilterAction
Ptr returns reference to SecurityMonitoringFilterAction value.
func (v *SecurityMonitoringFilterAction) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringListRulesResponse List of rules.
type SecurityMonitoringListRulesResponse struct {
// Array containing the list of rules.
Data []SecurityMonitoringRuleResponse `json:"data,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringListRulesResponse() *SecurityMonitoringListRulesResponse
NewSecurityMonitoringListRulesResponse instantiates a new SecurityMonitoringListRulesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringListRulesResponseWithDefaults() *SecurityMonitoringListRulesResponse
NewSecurityMonitoringListRulesResponseWithDefaults instantiates a new SecurityMonitoringListRulesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringListRulesResponse) GetData() []SecurityMonitoringRuleResponse
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityMonitoringListRulesResponse) GetDataOk() (*[]SecurityMonitoringRuleResponse, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringListRulesResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityMonitoringListRulesResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringListRulesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityMonitoringListRulesResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityMonitoringListRulesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringListRulesResponse) SetData(v []SecurityMonitoringRuleResponse)
SetData gets a reference to the given []SecurityMonitoringRuleResponse and assigns it to the Data field.
func (o *SecurityMonitoringListRulesResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *SecurityMonitoringListRulesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCase Case when signal is generated.
type SecurityMonitoringRuleCase struct {
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
// based on the event counts in the previously defined queries.
Condition *string `json:"condition,omitempty"`
// Name of the case.
Name *string `json:"name,omitempty"`
// Notification targets for each rule case.
Notifications []string `json:"notifications,omitempty"`
// Severity of the Security Signal.
Status *SecurityMonitoringRuleSeverity `json:"status,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleCase() *SecurityMonitoringRuleCase
NewSecurityMonitoringRuleCase instantiates a new SecurityMonitoringRuleCase object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleCaseWithDefaults() *SecurityMonitoringRuleCase
NewSecurityMonitoringRuleCaseWithDefaults instantiates a new SecurityMonitoringRuleCase object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleCase) GetCondition() string
GetCondition returns the Condition field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetConditionOk() (*string, bool)
GetConditionOk returns a tuple with the Condition field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetNotifications() []string
GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetNotificationsOk() (*[]string, bool)
GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) GetStatus() SecurityMonitoringRuleSeverity
GetStatus returns the Status field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCase) GetStatusOk() (*SecurityMonitoringRuleSeverity, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCase) HasCondition() bool
HasCondition returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCase) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o SecurityMonitoringRuleCase) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleCase) SetCondition(v string)
SetCondition gets a reference to the given string and assigns it to the Condition field.
func (o *SecurityMonitoringRuleCase) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleCase) SetNotifications(v []string)
SetNotifications gets a reference to the given []string and assigns it to the Notifications field.
func (o *SecurityMonitoringRuleCase) SetStatus(v SecurityMonitoringRuleSeverity)
SetStatus gets a reference to the given SecurityMonitoringRuleSeverity and assigns it to the Status field.
func (o *SecurityMonitoringRuleCase) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCaseCreate Case when signal is generated.
type SecurityMonitoringRuleCaseCreate struct {
// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
// based on the event counts in the previously defined queries.
Condition *string `json:"condition,omitempty"`
// Name of the case.
Name *string `json:"name,omitempty"`
// Notification targets for each rule case.
Notifications []string `json:"notifications,omitempty"`
// Severity of the Security Signal.
Status SecurityMonitoringRuleSeverity `json:"status"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleCaseCreate(status SecurityMonitoringRuleSeverity) *SecurityMonitoringRuleCaseCreate
NewSecurityMonitoringRuleCaseCreate instantiates a new SecurityMonitoringRuleCaseCreate object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleCaseCreateWithDefaults() *SecurityMonitoringRuleCaseCreate
NewSecurityMonitoringRuleCaseCreateWithDefaults instantiates a new SecurityMonitoringRuleCaseCreate object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleCaseCreate) GetCondition() string
GetCondition returns the Condition field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetConditionOk() (*string, bool)
GetConditionOk returns a tuple with the Condition field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetNotifications() []string
GetNotifications returns the Notifications field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleCaseCreate) GetNotificationsOk() (*[]string, bool)
GetNotificationsOk returns a tuple with the Notifications field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) GetStatus() SecurityMonitoringRuleSeverity
GetStatus returns the Status field value.
func (o *SecurityMonitoringRuleCaseCreate) GetStatusOk() (*SecurityMonitoringRuleSeverity, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasCondition() bool
HasCondition returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleCaseCreate) HasNotifications() bool
HasNotifications returns a boolean if a field has been set.
func (o SecurityMonitoringRuleCaseCreate) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleCaseCreate) SetCondition(v string)
SetCondition gets a reference to the given string and assigns it to the Condition field.
func (o *SecurityMonitoringRuleCaseCreate) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleCaseCreate) SetNotifications(v []string)
SetNotifications gets a reference to the given []string and assigns it to the Notifications field.
func (o *SecurityMonitoringRuleCaseCreate) SetStatus(v SecurityMonitoringRuleSeverity)
SetStatus sets field value.
func (o *SecurityMonitoringRuleCaseCreate) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleCreatePayload - Create a new rule.
type SecurityMonitoringRuleCreatePayload struct {
SecurityMonitoringStandardRuleCreatePayload *SecurityMonitoringStandardRuleCreatePayload
SecurityMonitoringSignalRuleCreatePayload *SecurityMonitoringSignalRuleCreatePayload
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SecurityMonitoringSignalRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload(v *SecurityMonitoringSignalRuleCreatePayload) SecurityMonitoringRuleCreatePayload
SecurityMonitoringSignalRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload is a convenience function that returns SecurityMonitoringSignalRuleCreatePayload wrapped in SecurityMonitoringRuleCreatePayload.
func SecurityMonitoringStandardRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload(v *SecurityMonitoringStandardRuleCreatePayload) SecurityMonitoringRuleCreatePayload
SecurityMonitoringStandardRuleCreatePayloadAsSecurityMonitoringRuleCreatePayload is a convenience function that returns SecurityMonitoringStandardRuleCreatePayload wrapped in SecurityMonitoringRuleCreatePayload.
func (obj *SecurityMonitoringRuleCreatePayload) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleCreatePayload) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleDetectionMethod The detection method.
type SecurityMonitoringRuleDetectionMethod string
List of SecurityMonitoringRuleDetectionMethod.
const (
SECURITYMONITORINGRULEDETECTIONMETHOD_THRESHOLD SecurityMonitoringRuleDetectionMethod = "threshold"
SECURITYMONITORINGRULEDETECTIONMETHOD_NEW_VALUE SecurityMonitoringRuleDetectionMethod = "new_value"
SECURITYMONITORINGRULEDETECTIONMETHOD_ANOMALY_DETECTION SecurityMonitoringRuleDetectionMethod = "anomaly_detection"
SECURITYMONITORINGRULEDETECTIONMETHOD_IMPOSSIBLE_TRAVEL SecurityMonitoringRuleDetectionMethod = "impossible_travel"
SECURITYMONITORINGRULEDETECTIONMETHOD_HARDCODED SecurityMonitoringRuleDetectionMethod = "hardcoded"
)
func NewSecurityMonitoringRuleDetectionMethodFromValue(v string) (*SecurityMonitoringRuleDetectionMethod, error)
NewSecurityMonitoringRuleDetectionMethodFromValue returns a pointer to a valid SecurityMonitoringRuleDetectionMethod for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleDetectionMethod) GetAllowedValues() []SecurityMonitoringRuleDetectionMethod
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleDetectionMethod) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleDetectionMethod) Ptr() *SecurityMonitoringRuleDetectionMethod
Ptr returns reference to SecurityMonitoringRuleDetectionMethod value.
func (v *SecurityMonitoringRuleDetectionMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleEvaluationWindow A time window is specified to match when at least one of the cases matches true. This is a sliding window and evaluates in real time.
type SecurityMonitoringRuleEvaluationWindow int32
List of SecurityMonitoringRuleEvaluationWindow.
const (
SECURITYMONITORINGRULEEVALUATIONWINDOW_ZERO_MINUTES SecurityMonitoringRuleEvaluationWindow = 0
SECURITYMONITORINGRULEEVALUATIONWINDOW_ONE_MINUTE SecurityMonitoringRuleEvaluationWindow = 60
SECURITYMONITORINGRULEEVALUATIONWINDOW_FIVE_MINUTES SecurityMonitoringRuleEvaluationWindow = 300
SECURITYMONITORINGRULEEVALUATIONWINDOW_TEN_MINUTES SecurityMonitoringRuleEvaluationWindow = 600
SECURITYMONITORINGRULEEVALUATIONWINDOW_FIFTEEN_MINUTES SecurityMonitoringRuleEvaluationWindow = 900
SECURITYMONITORINGRULEEVALUATIONWINDOW_THIRTY_MINUTES SecurityMonitoringRuleEvaluationWindow = 1800
SECURITYMONITORINGRULEEVALUATIONWINDOW_ONE_HOUR SecurityMonitoringRuleEvaluationWindow = 3600
SECURITYMONITORINGRULEEVALUATIONWINDOW_TWO_HOURS SecurityMonitoringRuleEvaluationWindow = 7200
)
func NewSecurityMonitoringRuleEvaluationWindowFromValue(v int32) (*SecurityMonitoringRuleEvaluationWindow, error)
NewSecurityMonitoringRuleEvaluationWindowFromValue returns a pointer to a valid SecurityMonitoringRuleEvaluationWindow for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleEvaluationWindow) GetAllowedValues() []SecurityMonitoringRuleEvaluationWindow
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleEvaluationWindow) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleEvaluationWindow) Ptr() *SecurityMonitoringRuleEvaluationWindow
Ptr returns reference to SecurityMonitoringRuleEvaluationWindow value.
func (v *SecurityMonitoringRuleEvaluationWindow) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleHardcodedEvaluatorType Hardcoded evaluator type.
type SecurityMonitoringRuleHardcodedEvaluatorType string
List of SecurityMonitoringRuleHardcodedEvaluatorType.
const (
SECURITYMONITORINGRULEHARDCODEDEVALUATORTYPE_LOG4SHELL SecurityMonitoringRuleHardcodedEvaluatorType = "log4shell"
)
func NewSecurityMonitoringRuleHardcodedEvaluatorTypeFromValue(v string) (*SecurityMonitoringRuleHardcodedEvaluatorType, error)
NewSecurityMonitoringRuleHardcodedEvaluatorTypeFromValue returns a pointer to a valid SecurityMonitoringRuleHardcodedEvaluatorType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleHardcodedEvaluatorType) GetAllowedValues() []SecurityMonitoringRuleHardcodedEvaluatorType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleHardcodedEvaluatorType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleHardcodedEvaluatorType) Ptr() *SecurityMonitoringRuleHardcodedEvaluatorType
Ptr returns reference to SecurityMonitoringRuleHardcodedEvaluatorType value.
func (v *SecurityMonitoringRuleHardcodedEvaluatorType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleImpossibleTravelOptions Options on impossible travel rules.
type SecurityMonitoringRuleImpossibleTravelOptions struct {
// If true, signals are suppressed for the first 24 hours. In that time, Datadog learns the user's regular
// access locations. This can be helpful to reduce noise and infer VPN usage or credentialed API access.
BaselineUserLocations *bool `json:"baselineUserLocations,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleImpossibleTravelOptions() *SecurityMonitoringRuleImpossibleTravelOptions
NewSecurityMonitoringRuleImpossibleTravelOptions instantiates a new SecurityMonitoringRuleImpossibleTravelOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleImpossibleTravelOptionsWithDefaults() *SecurityMonitoringRuleImpossibleTravelOptions
NewSecurityMonitoringRuleImpossibleTravelOptionsWithDefaults instantiates a new SecurityMonitoringRuleImpossibleTravelOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) GetBaselineUserLocations() bool
GetBaselineUserLocations returns the BaselineUserLocations field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) GetBaselineUserLocationsOk() (*bool, bool)
GetBaselineUserLocationsOk returns a tuple with the BaselineUserLocations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) HasBaselineUserLocations() bool
HasBaselineUserLocations returns a boolean if a field has been set.
func (o SecurityMonitoringRuleImpossibleTravelOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) SetBaselineUserLocations(v bool)
SetBaselineUserLocations gets a reference to the given bool and assigns it to the BaselineUserLocations field.
func (o *SecurityMonitoringRuleImpossibleTravelOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleKeepAlive Once a signal is generated, the signal will remain “open” if a case is matched at least once within this keep alive window.
type SecurityMonitoringRuleKeepAlive int32
List of SecurityMonitoringRuleKeepAlive.
const (
SECURITYMONITORINGRULEKEEPALIVE_ZERO_MINUTES SecurityMonitoringRuleKeepAlive = 0
SECURITYMONITORINGRULEKEEPALIVE_ONE_MINUTE SecurityMonitoringRuleKeepAlive = 60
SECURITYMONITORINGRULEKEEPALIVE_FIVE_MINUTES SecurityMonitoringRuleKeepAlive = 300
SECURITYMONITORINGRULEKEEPALIVE_TEN_MINUTES SecurityMonitoringRuleKeepAlive = 600
SECURITYMONITORINGRULEKEEPALIVE_FIFTEEN_MINUTES SecurityMonitoringRuleKeepAlive = 900
SECURITYMONITORINGRULEKEEPALIVE_THIRTY_MINUTES SecurityMonitoringRuleKeepAlive = 1800
SECURITYMONITORINGRULEKEEPALIVE_ONE_HOUR SecurityMonitoringRuleKeepAlive = 3600
SECURITYMONITORINGRULEKEEPALIVE_TWO_HOURS SecurityMonitoringRuleKeepAlive = 7200
SECURITYMONITORINGRULEKEEPALIVE_THREE_HOURS SecurityMonitoringRuleKeepAlive = 10800
SECURITYMONITORINGRULEKEEPALIVE_SIX_HOURS SecurityMonitoringRuleKeepAlive = 21600
)
func NewSecurityMonitoringRuleKeepAliveFromValue(v int32) (*SecurityMonitoringRuleKeepAlive, error)
NewSecurityMonitoringRuleKeepAliveFromValue returns a pointer to a valid SecurityMonitoringRuleKeepAlive for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleKeepAlive) GetAllowedValues() []SecurityMonitoringRuleKeepAlive
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleKeepAlive) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleKeepAlive) Ptr() *SecurityMonitoringRuleKeepAlive
Ptr returns reference to SecurityMonitoringRuleKeepAlive value.
func (v *SecurityMonitoringRuleKeepAlive) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleMaxSignalDuration A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. This time is calculated from the first seen timestamp.
type SecurityMonitoringRuleMaxSignalDuration int32
List of SecurityMonitoringRuleMaxSignalDuration.
const (
SECURITYMONITORINGRULEMAXSIGNALDURATION_ZERO_MINUTES SecurityMonitoringRuleMaxSignalDuration = 0
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_MINUTE SecurityMonitoringRuleMaxSignalDuration = 60
SECURITYMONITORINGRULEMAXSIGNALDURATION_FIVE_MINUTES SecurityMonitoringRuleMaxSignalDuration = 300
SECURITYMONITORINGRULEMAXSIGNALDURATION_TEN_MINUTES SecurityMonitoringRuleMaxSignalDuration = 600
SECURITYMONITORINGRULEMAXSIGNALDURATION_FIFTEEN_MINUTES SecurityMonitoringRuleMaxSignalDuration = 900
SECURITYMONITORINGRULEMAXSIGNALDURATION_THIRTY_MINUTES SecurityMonitoringRuleMaxSignalDuration = 1800
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_HOUR SecurityMonitoringRuleMaxSignalDuration = 3600
SECURITYMONITORINGRULEMAXSIGNALDURATION_TWO_HOURS SecurityMonitoringRuleMaxSignalDuration = 7200
SECURITYMONITORINGRULEMAXSIGNALDURATION_THREE_HOURS SecurityMonitoringRuleMaxSignalDuration = 10800
SECURITYMONITORINGRULEMAXSIGNALDURATION_SIX_HOURS SecurityMonitoringRuleMaxSignalDuration = 21600
SECURITYMONITORINGRULEMAXSIGNALDURATION_TWELVE_HOURS SecurityMonitoringRuleMaxSignalDuration = 43200
SECURITYMONITORINGRULEMAXSIGNALDURATION_ONE_DAY SecurityMonitoringRuleMaxSignalDuration = 86400
)
func NewSecurityMonitoringRuleMaxSignalDurationFromValue(v int32) (*SecurityMonitoringRuleMaxSignalDuration, error)
NewSecurityMonitoringRuleMaxSignalDurationFromValue returns a pointer to a valid SecurityMonitoringRuleMaxSignalDuration for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleMaxSignalDuration) GetAllowedValues() []SecurityMonitoringRuleMaxSignalDuration
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleMaxSignalDuration) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleMaxSignalDuration) Ptr() *SecurityMonitoringRuleMaxSignalDuration
Ptr returns reference to SecurityMonitoringRuleMaxSignalDuration value.
func (v *SecurityMonitoringRuleMaxSignalDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptions Options on new value rules.
type SecurityMonitoringRuleNewValueOptions struct {
// The duration in days after which a learned value is forgotten.
ForgetAfter *SecurityMonitoringRuleNewValueOptionsForgetAfter `json:"forgetAfter,omitempty"`
// The duration in days during which values are learned, and after which signals will be generated for values that
// weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
LearningDuration *SecurityMonitoringRuleNewValueOptionsLearningDuration `json:"learningDuration,omitempty"`
// The learning method used to determine when signals should be generated for values that weren't learned.
LearningMethod *SecurityMonitoringRuleNewValueOptionsLearningMethod `json:"learningMethod,omitempty"`
// A number of occurrences after which signals will be generated for values that weren't learned.
LearningThreshold *SecurityMonitoringRuleNewValueOptionsLearningThreshold `json:"learningThreshold,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleNewValueOptions() *SecurityMonitoringRuleNewValueOptions
NewSecurityMonitoringRuleNewValueOptions instantiates a new SecurityMonitoringRuleNewValueOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleNewValueOptionsWithDefaults() *SecurityMonitoringRuleNewValueOptions
NewSecurityMonitoringRuleNewValueOptionsWithDefaults instantiates a new SecurityMonitoringRuleNewValueOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleNewValueOptions) GetForgetAfter() SecurityMonitoringRuleNewValueOptionsForgetAfter
GetForgetAfter returns the ForgetAfter field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetForgetAfterOk() (*SecurityMonitoringRuleNewValueOptionsForgetAfter, bool)
GetForgetAfterOk returns a tuple with the ForgetAfter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningDuration() SecurityMonitoringRuleNewValueOptionsLearningDuration
GetLearningDuration returns the LearningDuration field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningDurationOk() (*SecurityMonitoringRuleNewValueOptionsLearningDuration, bool)
GetLearningDurationOk returns a tuple with the LearningDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningMethod() SecurityMonitoringRuleNewValueOptionsLearningMethod
GetLearningMethod returns the LearningMethod field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningMethodOk() (*SecurityMonitoringRuleNewValueOptionsLearningMethod, bool)
GetLearningMethodOk returns a tuple with the LearningMethod field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningThreshold() SecurityMonitoringRuleNewValueOptionsLearningThreshold
GetLearningThreshold returns the LearningThreshold field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleNewValueOptions) GetLearningThresholdOk() (*SecurityMonitoringRuleNewValueOptionsLearningThreshold, bool)
GetLearningThresholdOk returns a tuple with the LearningThreshold field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasForgetAfter() bool
HasForgetAfter returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningDuration() bool
HasLearningDuration returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningMethod() bool
HasLearningMethod returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleNewValueOptions) HasLearningThreshold() bool
HasLearningThreshold returns a boolean if a field has been set.
func (o SecurityMonitoringRuleNewValueOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleNewValueOptions) SetForgetAfter(v SecurityMonitoringRuleNewValueOptionsForgetAfter)
SetForgetAfter gets a reference to the given SecurityMonitoringRuleNewValueOptionsForgetAfter and assigns it to the ForgetAfter field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningDuration(v SecurityMonitoringRuleNewValueOptionsLearningDuration)
SetLearningDuration gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningDuration and assigns it to the LearningDuration field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningMethod(v SecurityMonitoringRuleNewValueOptionsLearningMethod)
SetLearningMethod gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningMethod and assigns it to the LearningMethod field.
func (o *SecurityMonitoringRuleNewValueOptions) SetLearningThreshold(v SecurityMonitoringRuleNewValueOptionsLearningThreshold)
SetLearningThreshold gets a reference to the given SecurityMonitoringRuleNewValueOptionsLearningThreshold and assigns it to the LearningThreshold field.
func (o *SecurityMonitoringRuleNewValueOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsForgetAfter The duration in days after which a learned value is forgotten.
type SecurityMonitoringRuleNewValueOptionsForgetAfter int32
List of SecurityMonitoringRuleNewValueOptionsForgetAfter.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_ONE_DAY SecurityMonitoringRuleNewValueOptionsForgetAfter = 1
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_TWO_DAYS SecurityMonitoringRuleNewValueOptionsForgetAfter = 2
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_ONE_WEEK SecurityMonitoringRuleNewValueOptionsForgetAfter = 7
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_TWO_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 14
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_THREE_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 21
SECURITYMONITORINGRULENEWVALUEOPTIONSFORGETAFTER_FOUR_WEEKS SecurityMonitoringRuleNewValueOptionsForgetAfter = 28
)
func NewSecurityMonitoringRuleNewValueOptionsForgetAfterFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsForgetAfter, error)
NewSecurityMonitoringRuleNewValueOptionsForgetAfterFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsForgetAfter for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsForgetAfter) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsForgetAfter
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsForgetAfter) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsForgetAfter) Ptr() *SecurityMonitoringRuleNewValueOptionsForgetAfter
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsForgetAfter value.
func (v *SecurityMonitoringRuleNewValueOptionsForgetAfter) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningDuration The duration in days during which values are learned, and after which signals will be generated for values that weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
type SecurityMonitoringRuleNewValueOptionsLearningDuration int32
List of SecurityMonitoringRuleNewValueOptionsLearningDuration.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_ZERO_DAYS SecurityMonitoringRuleNewValueOptionsLearningDuration = 0
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_ONE_DAY SecurityMonitoringRuleNewValueOptionsLearningDuration = 1
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGDURATION_SEVEN_DAYS SecurityMonitoringRuleNewValueOptionsLearningDuration = 7
)
func NewSecurityMonitoringRuleNewValueOptionsLearningDurationFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsLearningDuration, error)
NewSecurityMonitoringRuleNewValueOptionsLearningDurationFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningDuration for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningDuration) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningDuration
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningDuration) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningDuration) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningDuration
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningDuration value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningDuration) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningMethod The learning method used to determine when signals should be generated for values that weren't learned.
type SecurityMonitoringRuleNewValueOptionsLearningMethod string
List of SecurityMonitoringRuleNewValueOptionsLearningMethod.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGMETHOD_DURATION SecurityMonitoringRuleNewValueOptionsLearningMethod = "duration"
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGMETHOD_THRESHOLD SecurityMonitoringRuleNewValueOptionsLearningMethod = "threshold"
)
func NewSecurityMonitoringRuleNewValueOptionsLearningMethodFromValue(v string) (*SecurityMonitoringRuleNewValueOptionsLearningMethod, error)
NewSecurityMonitoringRuleNewValueOptionsLearningMethodFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningMethod for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningMethod) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningMethod
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningMethod) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningMethod) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningMethod
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningMethod value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningMethod) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleNewValueOptionsLearningThreshold A number of occurrences after which signals will be generated for values that weren't learned.
type SecurityMonitoringRuleNewValueOptionsLearningThreshold int32
List of SecurityMonitoringRuleNewValueOptionsLearningThreshold.
const (
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGTHRESHOLD_ZERO_OCCURRENCES SecurityMonitoringRuleNewValueOptionsLearningThreshold = 0
SECURITYMONITORINGRULENEWVALUEOPTIONSLEARNINGTHRESHOLD_ONE_OCCURRENCE SecurityMonitoringRuleNewValueOptionsLearningThreshold = 1
)
func NewSecurityMonitoringRuleNewValueOptionsLearningThresholdFromValue(v int32) (*SecurityMonitoringRuleNewValueOptionsLearningThreshold, error)
NewSecurityMonitoringRuleNewValueOptionsLearningThresholdFromValue returns a pointer to a valid SecurityMonitoringRuleNewValueOptionsLearningThreshold for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleNewValueOptionsLearningThreshold) GetAllowedValues() []SecurityMonitoringRuleNewValueOptionsLearningThreshold
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleNewValueOptionsLearningThreshold) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleNewValueOptionsLearningThreshold) Ptr() *SecurityMonitoringRuleNewValueOptionsLearningThreshold
Ptr returns reference to SecurityMonitoringRuleNewValueOptionsLearningThreshold value.
func (v *SecurityMonitoringRuleNewValueOptionsLearningThreshold) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleOptions Options on rules.
type SecurityMonitoringRuleOptions struct {
// If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce signal noise.
// The severity is decreased by one level: `CRITICAL` in production becomes `HIGH` in non-production, `HIGH` becomes `MEDIUM` and so on. `INFO` remains `INFO`.
// The decrement is applied when the environment tag of the signal starts with `staging`, `test` or `dev`.
DecreaseCriticalityBasedOnEnv *bool `json:"decreaseCriticalityBasedOnEnv,omitempty"`
// The detection method.
DetectionMethod *SecurityMonitoringRuleDetectionMethod `json:"detectionMethod,omitempty"`
// A time window is specified to match when at least one of the cases matches true. This is a sliding window
// and evaluates in real time.
EvaluationWindow *SecurityMonitoringRuleEvaluationWindow `json:"evaluationWindow,omitempty"`
// Hardcoded evaluator type.
HardcodedEvaluatorType *SecurityMonitoringRuleHardcodedEvaluatorType `json:"hardcodedEvaluatorType,omitempty"`
// Options on impossible travel rules.
ImpossibleTravelOptions *SecurityMonitoringRuleImpossibleTravelOptions `json:"impossibleTravelOptions,omitempty"`
// Once a signal is generated, the signal will remain “open” if a case is matched at least once within
// this keep alive window.
KeepAlive *SecurityMonitoringRuleKeepAlive `json:"keepAlive,omitempty"`
// A signal will “close” regardless of the query being matched once the time exceeds the maximum duration.
// This time is calculated from the first seen timestamp.
MaxSignalDuration *SecurityMonitoringRuleMaxSignalDuration `json:"maxSignalDuration,omitempty"`
// Options on new value rules.
NewValueOptions *SecurityMonitoringRuleNewValueOptions `json:"newValueOptions,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleOptions() *SecurityMonitoringRuleOptions
NewSecurityMonitoringRuleOptions instantiates a new SecurityMonitoringRuleOptions object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleOptionsWithDefaults() *SecurityMonitoringRuleOptions
NewSecurityMonitoringRuleOptionsWithDefaults instantiates a new SecurityMonitoringRuleOptions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleOptions) GetDecreaseCriticalityBasedOnEnv() bool
GetDecreaseCriticalityBasedOnEnv returns the DecreaseCriticalityBasedOnEnv field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetDecreaseCriticalityBasedOnEnvOk() (*bool, bool)
GetDecreaseCriticalityBasedOnEnvOk returns a tuple with the DecreaseCriticalityBasedOnEnv field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetDetectionMethod() SecurityMonitoringRuleDetectionMethod
GetDetectionMethod returns the DetectionMethod field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetDetectionMethodOk() (*SecurityMonitoringRuleDetectionMethod, bool)
GetDetectionMethodOk returns a tuple with the DetectionMethod field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetEvaluationWindow() SecurityMonitoringRuleEvaluationWindow
GetEvaluationWindow returns the EvaluationWindow field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetEvaluationWindowOk() (*SecurityMonitoringRuleEvaluationWindow, bool)
GetEvaluationWindowOk returns a tuple with the EvaluationWindow field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetHardcodedEvaluatorType() SecurityMonitoringRuleHardcodedEvaluatorType
GetHardcodedEvaluatorType returns the HardcodedEvaluatorType field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetHardcodedEvaluatorTypeOk() (*SecurityMonitoringRuleHardcodedEvaluatorType, bool)
GetHardcodedEvaluatorTypeOk returns a tuple with the HardcodedEvaluatorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetImpossibleTravelOptions() SecurityMonitoringRuleImpossibleTravelOptions
GetImpossibleTravelOptions returns the ImpossibleTravelOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetImpossibleTravelOptionsOk() (*SecurityMonitoringRuleImpossibleTravelOptions, bool)
GetImpossibleTravelOptionsOk returns a tuple with the ImpossibleTravelOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetKeepAlive() SecurityMonitoringRuleKeepAlive
GetKeepAlive returns the KeepAlive field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetKeepAliveOk() (*SecurityMonitoringRuleKeepAlive, bool)
GetKeepAliveOk returns a tuple with the KeepAlive field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetMaxSignalDuration() SecurityMonitoringRuleMaxSignalDuration
GetMaxSignalDuration returns the MaxSignalDuration field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetMaxSignalDurationOk() (*SecurityMonitoringRuleMaxSignalDuration, bool)
GetMaxSignalDurationOk returns a tuple with the MaxSignalDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) GetNewValueOptions() SecurityMonitoringRuleNewValueOptions
GetNewValueOptions returns the NewValueOptions field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleOptions) GetNewValueOptionsOk() (*SecurityMonitoringRuleNewValueOptions, bool)
GetNewValueOptionsOk returns a tuple with the NewValueOptions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleOptions) HasDecreaseCriticalityBasedOnEnv() bool
HasDecreaseCriticalityBasedOnEnv returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasDetectionMethod() bool
HasDetectionMethod returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasEvaluationWindow() bool
HasEvaluationWindow returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasHardcodedEvaluatorType() bool
HasHardcodedEvaluatorType returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasImpossibleTravelOptions() bool
HasImpossibleTravelOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasKeepAlive() bool
HasKeepAlive returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasMaxSignalDuration() bool
HasMaxSignalDuration returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleOptions) HasNewValueOptions() bool
HasNewValueOptions returns a boolean if a field has been set.
func (o SecurityMonitoringRuleOptions) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleOptions) SetDecreaseCriticalityBasedOnEnv(v bool)
SetDecreaseCriticalityBasedOnEnv gets a reference to the given bool and assigns it to the DecreaseCriticalityBasedOnEnv field.
func (o *SecurityMonitoringRuleOptions) SetDetectionMethod(v SecurityMonitoringRuleDetectionMethod)
SetDetectionMethod gets a reference to the given SecurityMonitoringRuleDetectionMethod and assigns it to the DetectionMethod field.
func (o *SecurityMonitoringRuleOptions) SetEvaluationWindow(v SecurityMonitoringRuleEvaluationWindow)
SetEvaluationWindow gets a reference to the given SecurityMonitoringRuleEvaluationWindow and assigns it to the EvaluationWindow field.
func (o *SecurityMonitoringRuleOptions) SetHardcodedEvaluatorType(v SecurityMonitoringRuleHardcodedEvaluatorType)
SetHardcodedEvaluatorType gets a reference to the given SecurityMonitoringRuleHardcodedEvaluatorType and assigns it to the HardcodedEvaluatorType field.
func (o *SecurityMonitoringRuleOptions) SetImpossibleTravelOptions(v SecurityMonitoringRuleImpossibleTravelOptions)
SetImpossibleTravelOptions gets a reference to the given SecurityMonitoringRuleImpossibleTravelOptions and assigns it to the ImpossibleTravelOptions field.
func (o *SecurityMonitoringRuleOptions) SetKeepAlive(v SecurityMonitoringRuleKeepAlive)
SetKeepAlive gets a reference to the given SecurityMonitoringRuleKeepAlive and assigns it to the KeepAlive field.
func (o *SecurityMonitoringRuleOptions) SetMaxSignalDuration(v SecurityMonitoringRuleMaxSignalDuration)
SetMaxSignalDuration gets a reference to the given SecurityMonitoringRuleMaxSignalDuration and assigns it to the MaxSignalDuration field.
func (o *SecurityMonitoringRuleOptions) SetNewValueOptions(v SecurityMonitoringRuleNewValueOptions)
SetNewValueOptions gets a reference to the given SecurityMonitoringRuleNewValueOptions and assigns it to the NewValueOptions field.
func (o *SecurityMonitoringRuleOptions) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleQuery - Query for matching rule.
type SecurityMonitoringRuleQuery struct {
SecurityMonitoringStandardRuleQuery *SecurityMonitoringStandardRuleQuery
SecurityMonitoringSignalRuleQuery *SecurityMonitoringSignalRuleQuery
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SecurityMonitoringSignalRuleQueryAsSecurityMonitoringRuleQuery(v *SecurityMonitoringSignalRuleQuery) SecurityMonitoringRuleQuery
SecurityMonitoringSignalRuleQueryAsSecurityMonitoringRuleQuery is a convenience function that returns SecurityMonitoringSignalRuleQuery wrapped in SecurityMonitoringRuleQuery.
func SecurityMonitoringStandardRuleQueryAsSecurityMonitoringRuleQuery(v *SecurityMonitoringStandardRuleQuery) SecurityMonitoringRuleQuery
SecurityMonitoringStandardRuleQueryAsSecurityMonitoringRuleQuery is a convenience function that returns SecurityMonitoringStandardRuleQuery wrapped in SecurityMonitoringRuleQuery.
func (obj *SecurityMonitoringRuleQuery) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleQueryAggregation The aggregation type.
type SecurityMonitoringRuleQueryAggregation string
List of SecurityMonitoringRuleQueryAggregation.
const (
SECURITYMONITORINGRULEQUERYAGGREGATION_COUNT SecurityMonitoringRuleQueryAggregation = "count"
SECURITYMONITORINGRULEQUERYAGGREGATION_CARDINALITY SecurityMonitoringRuleQueryAggregation = "cardinality"
SECURITYMONITORINGRULEQUERYAGGREGATION_SUM SecurityMonitoringRuleQueryAggregation = "sum"
SECURITYMONITORINGRULEQUERYAGGREGATION_MAX SecurityMonitoringRuleQueryAggregation = "max"
SECURITYMONITORINGRULEQUERYAGGREGATION_NEW_VALUE SecurityMonitoringRuleQueryAggregation = "new_value"
SECURITYMONITORINGRULEQUERYAGGREGATION_GEO_DATA SecurityMonitoringRuleQueryAggregation = "geo_data"
SECURITYMONITORINGRULEQUERYAGGREGATION_EVENT_COUNT SecurityMonitoringRuleQueryAggregation = "event_count"
)
func NewSecurityMonitoringRuleQueryAggregationFromValue(v string) (*SecurityMonitoringRuleQueryAggregation, error)
NewSecurityMonitoringRuleQueryAggregationFromValue returns a pointer to a valid SecurityMonitoringRuleQueryAggregation for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleQueryAggregation) GetAllowedValues() []SecurityMonitoringRuleQueryAggregation
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleQueryAggregation) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleQueryAggregation) Ptr() *SecurityMonitoringRuleQueryAggregation
Ptr returns reference to SecurityMonitoringRuleQueryAggregation value.
func (v *SecurityMonitoringRuleQueryAggregation) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleResponse - Create a new rule.
type SecurityMonitoringRuleResponse struct {
SecurityMonitoringStandardRuleResponse *SecurityMonitoringStandardRuleResponse
SecurityMonitoringSignalRuleResponse *SecurityMonitoringSignalRuleResponse
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func SecurityMonitoringSignalRuleResponseAsSecurityMonitoringRuleResponse(v *SecurityMonitoringSignalRuleResponse) SecurityMonitoringRuleResponse
SecurityMonitoringSignalRuleResponseAsSecurityMonitoringRuleResponse is a convenience function that returns SecurityMonitoringSignalRuleResponse wrapped in SecurityMonitoringRuleResponse.
func SecurityMonitoringStandardRuleResponseAsSecurityMonitoringRuleResponse(v *SecurityMonitoringStandardRuleResponse) SecurityMonitoringRuleResponse
SecurityMonitoringStandardRuleResponseAsSecurityMonitoringRuleResponse is a convenience function that returns SecurityMonitoringStandardRuleResponse wrapped in SecurityMonitoringRuleResponse.
func (obj *SecurityMonitoringRuleResponse) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj SecurityMonitoringRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *SecurityMonitoringRuleResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
SecurityMonitoringRuleSeverity Severity of the Security Signal.
type SecurityMonitoringRuleSeverity string
List of SecurityMonitoringRuleSeverity.
const (
SECURITYMONITORINGRULESEVERITY_INFO SecurityMonitoringRuleSeverity = "info"
SECURITYMONITORINGRULESEVERITY_LOW SecurityMonitoringRuleSeverity = "low"
SECURITYMONITORINGRULESEVERITY_MEDIUM SecurityMonitoringRuleSeverity = "medium"
SECURITYMONITORINGRULESEVERITY_HIGH SecurityMonitoringRuleSeverity = "high"
SECURITYMONITORINGRULESEVERITY_CRITICAL SecurityMonitoringRuleSeverity = "critical"
)
func NewSecurityMonitoringRuleSeverityFromValue(v string) (*SecurityMonitoringRuleSeverity, error)
NewSecurityMonitoringRuleSeverityFromValue returns a pointer to a valid SecurityMonitoringRuleSeverity for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleSeverity) GetAllowedValues() []SecurityMonitoringRuleSeverity
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleSeverity) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleSeverity) Ptr() *SecurityMonitoringRuleSeverity
Ptr returns reference to SecurityMonitoringRuleSeverity value.
func (v *SecurityMonitoringRuleSeverity) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleTypeCreate The rule type.
type SecurityMonitoringRuleTypeCreate string
List of SecurityMonitoringRuleTypeCreate.
const (
SECURITYMONITORINGRULETYPECREATE_LOG_DETECTION SecurityMonitoringRuleTypeCreate = "log_detection"
SECURITYMONITORINGRULETYPECREATE_WORKLOAD_SECURITY SecurityMonitoringRuleTypeCreate = "workload_security"
)
func NewSecurityMonitoringRuleTypeCreateFromValue(v string) (*SecurityMonitoringRuleTypeCreate, error)
NewSecurityMonitoringRuleTypeCreateFromValue returns a pointer to a valid SecurityMonitoringRuleTypeCreate for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleTypeCreate) GetAllowedValues() []SecurityMonitoringRuleTypeCreate
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleTypeCreate) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleTypeCreate) Ptr() *SecurityMonitoringRuleTypeCreate
Ptr returns reference to SecurityMonitoringRuleTypeCreate value.
func (v *SecurityMonitoringRuleTypeCreate) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleTypeRead The rule type.
type SecurityMonitoringRuleTypeRead string
List of SecurityMonitoringRuleTypeRead.
const (
SECURITYMONITORINGRULETYPEREAD_LOG_DETECTION SecurityMonitoringRuleTypeRead = "log_detection"
SECURITYMONITORINGRULETYPEREAD_INFRASTRUCTURE_CONFIGURATION SecurityMonitoringRuleTypeRead = "infrastructure_configuration"
SECURITYMONITORINGRULETYPEREAD_WORKLOAD_SECURITY SecurityMonitoringRuleTypeRead = "workload_security"
SECURITYMONITORINGRULETYPEREAD_CLOUD_CONFIGURATION SecurityMonitoringRuleTypeRead = "cloud_configuration"
)
func NewSecurityMonitoringRuleTypeReadFromValue(v string) (*SecurityMonitoringRuleTypeRead, error)
NewSecurityMonitoringRuleTypeReadFromValue returns a pointer to a valid SecurityMonitoringRuleTypeRead for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringRuleTypeRead) GetAllowedValues() []SecurityMonitoringRuleTypeRead
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringRuleTypeRead) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringRuleTypeRead) Ptr() *SecurityMonitoringRuleTypeRead
Ptr returns reference to SecurityMonitoringRuleTypeRead value.
func (v *SecurityMonitoringRuleTypeRead) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringRuleUpdatePayload Update an existing rule.
type SecurityMonitoringRuleUpdatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// Name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringRuleQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The version of the rule being updated.
Version *int32 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringRuleUpdatePayload() *SecurityMonitoringRuleUpdatePayload
NewSecurityMonitoringRuleUpdatePayload instantiates a new SecurityMonitoringRuleUpdatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringRuleUpdatePayloadWithDefaults() *SecurityMonitoringRuleUpdatePayload
NewSecurityMonitoringRuleUpdatePayloadWithDefaults instantiates a new SecurityMonitoringRuleUpdatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringRuleUpdatePayload) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetQueries() []SecurityMonitoringRuleQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetQueriesOk() (*[]SecurityMonitoringRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) GetVersion() int32
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringRuleUpdatePayload) GetVersionOk() (*int32, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringRuleUpdatePayload) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringRuleUpdatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringRuleUpdatePayload) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringRuleUpdatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringRuleUpdatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringRuleUpdatePayload) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringRuleUpdatePayload) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringRuleUpdatePayload) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringRuleUpdatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringRuleUpdatePayload) SetQueries(v []SecurityMonitoringRuleQuery)
SetQueries gets a reference to the given []SecurityMonitoringRuleQuery and assigns it to the Queries field.
func (o *SecurityMonitoringRuleUpdatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringRuleUpdatePayload) SetVersion(v int32)
SetVersion gets a reference to the given int32 and assigns it to the Version field.
func (o *SecurityMonitoringRuleUpdatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignal Object description of a security signal.
type SecurityMonitoringSignal struct {
// The object containing all signal attributes and their
// associated values.
Attributes *SecurityMonitoringSignalAttributes `json:"attributes,omitempty"`
// The unique ID of the security signal.
Id *string `json:"id,omitempty"`
// The type of event.
Type *SecurityMonitoringSignalType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignal() *SecurityMonitoringSignal
NewSecurityMonitoringSignal instantiates a new SecurityMonitoringSignal object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalWithDefaults() *SecurityMonitoringSignal
NewSecurityMonitoringSignalWithDefaults instantiates a new SecurityMonitoringSignal object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignal) GetAttributes() SecurityMonitoringSignalAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetAttributesOk() (*SecurityMonitoringSignalAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) GetType() SecurityMonitoringSignalType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignal) GetTypeOk() (*SecurityMonitoringSignalType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignal) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityMonitoringSignal) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignal) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringSignal) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignal) SetAttributes(v SecurityMonitoringSignalAttributes)
SetAttributes gets a reference to the given SecurityMonitoringSignalAttributes and assigns it to the Attributes field.
func (o *SecurityMonitoringSignal) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringSignal) SetType(v SecurityMonitoringSignalType)
SetType gets a reference to the given SecurityMonitoringSignalType and assigns it to the Type field.
func (o *SecurityMonitoringSignal) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalArchiveReason Reason a signal is archived.
type SecurityMonitoringSignalArchiveReason string
List of SecurityMonitoringSignalArchiveReason.
const (
SECURITYMONITORINGSIGNALARCHIVEREASON_NONE SecurityMonitoringSignalArchiveReason = "none"
SECURITYMONITORINGSIGNALARCHIVEREASON_FALSE_POSITIVE SecurityMonitoringSignalArchiveReason = "false_positive"
SECURITYMONITORINGSIGNALARCHIVEREASON_TESTING_OR_MAINTENANCE SecurityMonitoringSignalArchiveReason = "testing_or_maintenance"
SECURITYMONITORINGSIGNALARCHIVEREASON_OTHER SecurityMonitoringSignalArchiveReason = "other"
)
func NewSecurityMonitoringSignalArchiveReasonFromValue(v string) (*SecurityMonitoringSignalArchiveReason, error)
NewSecurityMonitoringSignalArchiveReasonFromValue returns a pointer to a valid SecurityMonitoringSignalArchiveReason for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalArchiveReason) GetAllowedValues() []SecurityMonitoringSignalArchiveReason
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalArchiveReason) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalArchiveReason) Ptr() *SecurityMonitoringSignalArchiveReason
Ptr returns reference to SecurityMonitoringSignalArchiveReason value.
func (v *SecurityMonitoringSignalArchiveReason) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateAttributes Attributes describing the new assignee of a security signal.
type SecurityMonitoringSignalAssigneeUpdateAttributes struct {
// Object representing a given user entity.
Assignee SecurityMonitoringTriageUser `json:"assignee"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateAttributes(assignee SecurityMonitoringTriageUser) *SecurityMonitoringSignalAssigneeUpdateAttributes
NewSecurityMonitoringSignalAssigneeUpdateAttributes instantiates a new SecurityMonitoringSignalAssigneeUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateAttributesWithDefaults() *SecurityMonitoringSignalAssigneeUpdateAttributes
NewSecurityMonitoringSignalAssigneeUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetAssignee() SecurityMonitoringTriageUser
GetAssignee returns the Assignee field value.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetAssigneeOk() (*SecurityMonitoringTriageUser, bool)
GetAssigneeOk returns a tuple with the Assignee field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalAssigneeUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) SetAssignee(v SecurityMonitoringTriageUser)
SetAssignee sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalAssigneeUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateData Data containing the patch for changing the assignee of a signal.
type SecurityMonitoringSignalAssigneeUpdateData struct {
// Attributes describing the new assignee of a security signal.
Attributes SecurityMonitoringSignalAssigneeUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateData(attributes SecurityMonitoringSignalAssigneeUpdateAttributes) *SecurityMonitoringSignalAssigneeUpdateData
NewSecurityMonitoringSignalAssigneeUpdateData instantiates a new SecurityMonitoringSignalAssigneeUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateDataWithDefaults() *SecurityMonitoringSignalAssigneeUpdateData
NewSecurityMonitoringSignalAssigneeUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateData) GetAttributes() SecurityMonitoringSignalAssigneeUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalAssigneeUpdateData) GetAttributesOk() (*SecurityMonitoringSignalAssigneeUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalAssigneeUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateData) SetAttributes(v SecurityMonitoringSignalAssigneeUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAssigneeUpdateRequest Request body for changing the assignee of a given security monitoring signal.
type SecurityMonitoringSignalAssigneeUpdateRequest struct {
// Data containing the patch for changing the assignee of a signal.
Data SecurityMonitoringSignalAssigneeUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAssigneeUpdateRequest(data SecurityMonitoringSignalAssigneeUpdateData) *SecurityMonitoringSignalAssigneeUpdateRequest
NewSecurityMonitoringSignalAssigneeUpdateRequest instantiates a new SecurityMonitoringSignalAssigneeUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAssigneeUpdateRequestWithDefaults() *SecurityMonitoringSignalAssigneeUpdateRequest
NewSecurityMonitoringSignalAssigneeUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalAssigneeUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) GetData() SecurityMonitoringSignalAssigneeUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) GetDataOk() (*SecurityMonitoringSignalAssigneeUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalAssigneeUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) SetData(v SecurityMonitoringSignalAssigneeUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalAssigneeUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalAttributes The object containing all signal attributes and their associated values.
type SecurityMonitoringSignalAttributes struct {
// A JSON object of attributes in the security signal.
Attributes map[string]interface{} `json:"attributes,omitempty"`
// The message in the security signal defined by the rule that generated the signal.
Message *string `json:"message,omitempty"`
// An array of tags associated with the security signal.
Tags []string `json:"tags,omitempty"`
// The timestamp of the security signal.
Timestamp *time.Time `json:"timestamp,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalAttributes() *SecurityMonitoringSignalAttributes
NewSecurityMonitoringSignalAttributes instantiates a new SecurityMonitoringSignalAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalAttributesWithDefaults() *SecurityMonitoringSignalAttributes
NewSecurityMonitoringSignalAttributesWithDefaults instantiates a new SecurityMonitoringSignalAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalAttributes) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetAttributesOk() (*map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalAttributes) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalAttributes) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalAttributes) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o SecurityMonitoringSignalAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalAttributes) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *SecurityMonitoringSignalAttributes) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringSignalAttributes) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalAttributes) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *SecurityMonitoringSignalAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateAttributes Attributes describing the new list of related signals for a security signal.
type SecurityMonitoringSignalIncidentsUpdateAttributes struct {
// Array of incidents that are associated with this signal.
IncidentIds []int64 `json:"incident_ids"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateAttributes(incidentIds []int64) *SecurityMonitoringSignalIncidentsUpdateAttributes
NewSecurityMonitoringSignalIncidentsUpdateAttributes instantiates a new SecurityMonitoringSignalIncidentsUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateAttributesWithDefaults() *SecurityMonitoringSignalIncidentsUpdateAttributes
NewSecurityMonitoringSignalIncidentsUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetIncidentIds() []int64
GetIncidentIds returns the IncidentIds field value.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetIncidentIdsOk() (*[]int64, bool)
GetIncidentIdsOk returns a tuple with the IncidentIds field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalIncidentsUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) SetIncidentIds(v []int64)
SetIncidentIds sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalIncidentsUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateData Data containing the patch for changing the related incidents of a signal.
type SecurityMonitoringSignalIncidentsUpdateData struct {
// Attributes describing the new list of related signals for a security signal.
Attributes SecurityMonitoringSignalIncidentsUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateData(attributes SecurityMonitoringSignalIncidentsUpdateAttributes) *SecurityMonitoringSignalIncidentsUpdateData
NewSecurityMonitoringSignalIncidentsUpdateData instantiates a new SecurityMonitoringSignalIncidentsUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateDataWithDefaults() *SecurityMonitoringSignalIncidentsUpdateData
NewSecurityMonitoringSignalIncidentsUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateData) GetAttributes() SecurityMonitoringSignalIncidentsUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalIncidentsUpdateData) GetAttributesOk() (*SecurityMonitoringSignalIncidentsUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalIncidentsUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateData) SetAttributes(v SecurityMonitoringSignalIncidentsUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalIncidentsUpdateRequest Request body for changing the related incidents of a given security monitoring signal.
type SecurityMonitoringSignalIncidentsUpdateRequest struct {
// Data containing the patch for changing the related incidents of a signal.
Data SecurityMonitoringSignalIncidentsUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalIncidentsUpdateRequest(data SecurityMonitoringSignalIncidentsUpdateData) *SecurityMonitoringSignalIncidentsUpdateRequest
NewSecurityMonitoringSignalIncidentsUpdateRequest instantiates a new SecurityMonitoringSignalIncidentsUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalIncidentsUpdateRequestWithDefaults() *SecurityMonitoringSignalIncidentsUpdateRequest
NewSecurityMonitoringSignalIncidentsUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalIncidentsUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) GetData() SecurityMonitoringSignalIncidentsUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) GetDataOk() (*SecurityMonitoringSignalIncidentsUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalIncidentsUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) SetData(v SecurityMonitoringSignalIncidentsUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalIncidentsUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequest The request for a security signal list.
type SecurityMonitoringSignalListRequest struct {
// Search filters for listing security signals.
Filter *SecurityMonitoringSignalListRequestFilter `json:"filter,omitempty"`
// The paging attributes for listing security signals.
Page *SecurityMonitoringSignalListRequestPage `json:"page,omitempty"`
// The sort parameters used for querying security signals.
Sort *SecurityMonitoringSignalsSort `json:"sort,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequest() *SecurityMonitoringSignalListRequest
NewSecurityMonitoringSignalListRequest instantiates a new SecurityMonitoringSignalListRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestWithDefaults() *SecurityMonitoringSignalListRequest
NewSecurityMonitoringSignalListRequestWithDefaults instantiates a new SecurityMonitoringSignalListRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequest) GetFilter() SecurityMonitoringSignalListRequestFilter
GetFilter returns the Filter field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetFilterOk() (*SecurityMonitoringSignalListRequestFilter, bool)
GetFilterOk returns a tuple with the Filter field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) GetPage() SecurityMonitoringSignalListRequestPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetPageOk() (*SecurityMonitoringSignalListRequestPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) GetSort() SecurityMonitoringSignalsSort
GetSort returns the Sort field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequest) GetSortOk() (*SecurityMonitoringSignalsSort, bool)
GetSortOk returns a tuple with the Sort field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequest) HasFilter() bool
HasFilter returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequest) HasSort() bool
HasSort returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequest) SetFilter(v SecurityMonitoringSignalListRequestFilter)
SetFilter gets a reference to the given SecurityMonitoringSignalListRequestFilter and assigns it to the Filter field.
func (o *SecurityMonitoringSignalListRequest) SetPage(v SecurityMonitoringSignalListRequestPage)
SetPage gets a reference to the given SecurityMonitoringSignalListRequestPage and assigns it to the Page field.
func (o *SecurityMonitoringSignalListRequest) SetSort(v SecurityMonitoringSignalsSort)
SetSort gets a reference to the given SecurityMonitoringSignalsSort and assigns it to the Sort field.
func (o *SecurityMonitoringSignalListRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequestFilter Search filters for listing security signals.
type SecurityMonitoringSignalListRequestFilter struct {
// The minimum timestamp for requested security signals.
From *time.Time `json:"from,omitempty"`
// Search query for listing security signals.
Query *string `json:"query,omitempty"`
// The maximum timestamp for requested security signals.
To *time.Time `json:"to,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequestFilter() *SecurityMonitoringSignalListRequestFilter
NewSecurityMonitoringSignalListRequestFilter instantiates a new SecurityMonitoringSignalListRequestFilter object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestFilterWithDefaults() *SecurityMonitoringSignalListRequestFilter
NewSecurityMonitoringSignalListRequestFilterWithDefaults instantiates a new SecurityMonitoringSignalListRequestFilter object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequestFilter) GetFrom() time.Time
GetFrom returns the From field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetFromOk() (*time.Time, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) GetQuery() string
GetQuery returns the Query field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) GetTo() time.Time
GetTo returns the To field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestFilter) GetToOk() (*time.Time, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasQuery() bool
HasQuery returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestFilter) HasTo() bool
HasTo returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequestFilter) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequestFilter) SetFrom(v time.Time)
SetFrom gets a reference to the given time.Time and assigns it to the From field.
func (o *SecurityMonitoringSignalListRequestFilter) SetQuery(v string)
SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *SecurityMonitoringSignalListRequestFilter) SetTo(v time.Time)
SetTo gets a reference to the given time.Time and assigns it to the To field.
func (o *SecurityMonitoringSignalListRequestFilter) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalListRequestPage The paging attributes for listing security signals.
type SecurityMonitoringSignalListRequestPage struct {
// A list of results using the cursor provided in the previous query.
Cursor *string `json:"cursor,omitempty"`
// The maximum number of security signals in the response.
Limit *int32 `json:"limit,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalListRequestPage() *SecurityMonitoringSignalListRequestPage
NewSecurityMonitoringSignalListRequestPage instantiates a new SecurityMonitoringSignalListRequestPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalListRequestPageWithDefaults() *SecurityMonitoringSignalListRequestPage
NewSecurityMonitoringSignalListRequestPageWithDefaults instantiates a new SecurityMonitoringSignalListRequestPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalListRequestPage) GetCursor() string
GetCursor returns the Cursor field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestPage) GetCursorOk() (*string, bool)
GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestPage) GetLimit() int32
GetLimit returns the Limit field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalListRequestPage) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalListRequestPage) HasCursor() bool
HasCursor returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalListRequestPage) HasLimit() bool
HasLimit returns a boolean if a field has been set.
func (o SecurityMonitoringSignalListRequestPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalListRequestPage) SetCursor(v string)
SetCursor gets a reference to the given string and assigns it to the Cursor field.
func (o *SecurityMonitoringSignalListRequestPage) SetLimit(v int32)
SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *SecurityMonitoringSignalListRequestPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleCreatePayload Create a new signal correlation rule.
type SecurityMonitoringSignalRuleCreatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCaseCreate `json:"cases"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled bool `json:"isEnabled"`
// Message for generated signals.
Message string `json:"message"`
// The name of the rule.
Name string `json:"name"`
// Options on rules.
Options SecurityMonitoringRuleOptions `json:"options"`
// Queries for selecting signals which are part of the rule.
Queries []SecurityMonitoringSignalRuleQuery `json:"queries"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringSignalRuleType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleCreatePayload(cases []SecurityMonitoringRuleCaseCreate, isEnabled bool, message string, name string, options SecurityMonitoringRuleOptions, queries []SecurityMonitoringSignalRuleQuery) *SecurityMonitoringSignalRuleCreatePayload
NewSecurityMonitoringSignalRuleCreatePayload instantiates a new SecurityMonitoringSignalRuleCreatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleCreatePayloadWithDefaults() *SecurityMonitoringSignalRuleCreatePayload
NewSecurityMonitoringSignalRuleCreatePayloadWithDefaults instantiates a new SecurityMonitoringSignalRuleCreatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetCases() []SecurityMonitoringRuleCaseCreate
GetCases returns the Cases field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCaseCreate, bool)
GetCasesOk returns a tuple with the Cases field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetMessage() string
GetMessage returns the Message field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetName() string
GetName returns the Name field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetQueries() []SecurityMonitoringSignalRuleQuery
GetQueries returns the Queries field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetQueriesOk() (*[]SecurityMonitoringSignalRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetType() SecurityMonitoringSignalRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleCreatePayload) GetTypeOk() (*SecurityMonitoringSignalRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleCreatePayload) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetCases(v []SecurityMonitoringRuleCaseCreate)
SetCases sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetMessage(v string)
SetMessage sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetName(v string)
SetName sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetQueries(v []SecurityMonitoringSignalRuleQuery)
SetQueries sets field value.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalRuleCreatePayload) SetType(v SecurityMonitoringSignalRuleType)
SetType gets a reference to the given SecurityMonitoringSignalRuleType and assigns it to the Type field.
func (o *SecurityMonitoringSignalRuleCreatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleQuery Query for matching rule on signals.
type SecurityMonitoringSignalRuleQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Fields to group by.
CorrelatedByFields []string `json:"correlatedByFields,omitempty"`
// Index of the rule query used to retrieve the correlated field.
CorrelatedQueryIndex *int32 `json:"correlatedQueryIndex,omitempty"`
// Group of target fields to aggregate over when using the new value aggregations.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Rule ID to match on signals.
RuleId string `json:"ruleId"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleQuery(ruleId string) *SecurityMonitoringSignalRuleQuery
NewSecurityMonitoringSignalRuleQuery instantiates a new SecurityMonitoringSignalRuleQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleQueryWithDefaults() *SecurityMonitoringSignalRuleQuery
NewSecurityMonitoringSignalRuleQueryWithDefaults instantiates a new SecurityMonitoringSignalRuleQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedByFields() []string
GetCorrelatedByFields returns the CorrelatedByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedByFieldsOk() (*[]string, bool)
GetCorrelatedByFieldsOk returns a tuple with the CorrelatedByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedQueryIndex() int32
GetCorrelatedQueryIndex returns the CorrelatedQueryIndex field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetCorrelatedQueryIndexOk() (*int32, bool)
GetCorrelatedQueryIndexOk returns a tuple with the CorrelatedQueryIndex field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) GetRuleId() string
GetRuleId returns the RuleId field value.
func (o *SecurityMonitoringSignalRuleQuery) GetRuleIdOk() (*string, bool)
GetRuleIdOk returns a tuple with the RuleId field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasCorrelatedByFields() bool
HasCorrelatedByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasCorrelatedQueryIndex() bool
HasCorrelatedQueryIndex returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringSignalRuleQuery) SetCorrelatedByFields(v []string)
SetCorrelatedByFields gets a reference to the given []string and assigns it to the CorrelatedByFields field.
func (o *SecurityMonitoringSignalRuleQuery) SetCorrelatedQueryIndex(v int32)
SetCorrelatedQueryIndex gets a reference to the given int32 and assigns it to the CorrelatedQueryIndex field.
func (o *SecurityMonitoringSignalRuleQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringSignalRuleQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleQuery) SetRuleId(v string)
SetRuleId sets field value.
func (o *SecurityMonitoringSignalRuleQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleResponse Rule.
type SecurityMonitoringSignalRuleResponse struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// When the rule was created, timestamp in milliseconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// User ID of the user who created the rule.
CreationAuthorId *int64 `json:"creationAuthorId,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// The ID of the rule.
Id *string `json:"id,omitempty"`
// Whether the rule is included by default.
IsDefault *bool `json:"isDefault,omitempty"`
// Whether the rule has been deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// The name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringSignalRuleResponseQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringSignalRuleType `json:"type,omitempty"`
// User ID of the user who updated the rule.
UpdateAuthorId *int64 `json:"updateAuthorId,omitempty"`
// The version of the rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleResponse() *SecurityMonitoringSignalRuleResponse
NewSecurityMonitoringSignalRuleResponse instantiates a new SecurityMonitoringSignalRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleResponseWithDefaults() *SecurityMonitoringSignalRuleResponse
NewSecurityMonitoringSignalRuleResponseWithDefaults instantiates a new SecurityMonitoringSignalRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleResponse) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetCreationAuthorId() int64
GetCreationAuthorId returns the CreationAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetCreationAuthorIdOk() (*int64, bool)
GetCreationAuthorIdOk returns a tuple with the CreationAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDefault() bool
GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDefaultOk() (*bool, bool)
GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsDeletedOk() (*bool, bool)
GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetQueries() []SecurityMonitoringSignalRuleResponseQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetQueriesOk() (*[]SecurityMonitoringSignalRuleResponseQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetType() SecurityMonitoringSignalRuleType
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetTypeOk() (*SecurityMonitoringSignalRuleType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetUpdateAuthorId() int64
GetUpdateAuthorId returns the UpdateAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetUpdateAuthorIdOk() (*int64, bool)
GetUpdateAuthorIdOk returns a tuple with the UpdateAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponse) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasCreationAuthorId() bool
HasCreationAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsDefault() bool
HasIsDefault returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasUpdateAuthorId() bool
HasUpdateAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponse) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleResponse) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringSignalRuleResponse) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *SecurityMonitoringSignalRuleResponse) SetCreationAuthorId(v int64)
SetCreationAuthorId gets a reference to the given int64 and assigns it to the CreationAuthorId field.
func (o *SecurityMonitoringSignalRuleResponse) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringSignalRuleResponse) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringSignalRuleResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsDefault(v bool)
SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsDeleted(v bool)
SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field.
func (o *SecurityMonitoringSignalRuleResponse) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringSignalRuleResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringSignalRuleResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleResponse) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringSignalRuleResponse) SetQueries(v []SecurityMonitoringSignalRuleResponseQuery)
SetQueries gets a reference to the given []SecurityMonitoringSignalRuleResponseQuery and assigns it to the Queries field.
func (o *SecurityMonitoringSignalRuleResponse) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringSignalRuleResponse) SetType(v SecurityMonitoringSignalRuleType)
SetType gets a reference to the given SecurityMonitoringSignalRuleType and assigns it to the Type field.
func (o *SecurityMonitoringSignalRuleResponse) SetUpdateAuthorId(v int64)
SetUpdateAuthorId gets a reference to the given int64 and assigns it to the UpdateAuthorId field.
func (o *SecurityMonitoringSignalRuleResponse) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleResponseQuery Query for matching rule on signals.
type SecurityMonitoringSignalRuleResponseQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Fields to group by.
CorrelatedByFields []string `json:"correlatedByFields,omitempty"`
// Index of the rule query used to retrieve the correlated field.
CorrelatedQueryIndex *int32 `json:"correlatedQueryIndex,omitempty"`
// Default Rule ID to match on signals.
DefaultRuleId *string `json:"defaultRuleId,omitempty"`
// Group of target fields to aggregate over when using the new value aggregations.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Rule ID to match on signals.
RuleId *string `json:"ruleId,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalRuleResponseQuery() *SecurityMonitoringSignalRuleResponseQuery
NewSecurityMonitoringSignalRuleResponseQuery instantiates a new SecurityMonitoringSignalRuleResponseQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalRuleResponseQueryWithDefaults() *SecurityMonitoringSignalRuleResponseQuery
NewSecurityMonitoringSignalRuleResponseQueryWithDefaults instantiates a new SecurityMonitoringSignalRuleResponseQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedByFields() []string
GetCorrelatedByFields returns the CorrelatedByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedByFieldsOk() (*[]string, bool)
GetCorrelatedByFieldsOk returns a tuple with the CorrelatedByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedQueryIndex() int32
GetCorrelatedQueryIndex returns the CorrelatedQueryIndex field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetCorrelatedQueryIndexOk() (*int32, bool)
GetCorrelatedQueryIndexOk returns a tuple with the CorrelatedQueryIndex field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetDefaultRuleId() string
GetDefaultRuleId returns the DefaultRuleId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetDefaultRuleIdOk() (*string, bool)
GetDefaultRuleIdOk returns a tuple with the DefaultRuleId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetRuleId() string
GetRuleId returns the RuleId field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalRuleResponseQuery) GetRuleIdOk() (*string, bool)
GetRuleIdOk returns a tuple with the RuleId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasCorrelatedByFields() bool
HasCorrelatedByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasCorrelatedQueryIndex() bool
HasCorrelatedQueryIndex returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasDefaultRuleId() bool
HasDefaultRuleId returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalRuleResponseQuery) HasRuleId() bool
HasRuleId returns a boolean if a field has been set.
func (o SecurityMonitoringSignalRuleResponseQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetCorrelatedByFields(v []string)
SetCorrelatedByFields gets a reference to the given []string and assigns it to the CorrelatedByFields field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetCorrelatedQueryIndex(v int32)
SetCorrelatedQueryIndex gets a reference to the given int32 and assigns it to the CorrelatedQueryIndex field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetDefaultRuleId(v string)
SetDefaultRuleId gets a reference to the given string and assigns it to the DefaultRuleId field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringSignalRuleResponseQuery) SetRuleId(v string)
SetRuleId gets a reference to the given string and assigns it to the RuleId field.
func (o *SecurityMonitoringSignalRuleResponseQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalRuleType The rule type.
type SecurityMonitoringSignalRuleType string
List of SecurityMonitoringSignalRuleType.
const (
SECURITYMONITORINGSIGNALRULETYPE_SIGNAL_CORRELATION SecurityMonitoringSignalRuleType = "signal_correlation"
)
func NewSecurityMonitoringSignalRuleTypeFromValue(v string) (*SecurityMonitoringSignalRuleType, error)
NewSecurityMonitoringSignalRuleTypeFromValue returns a pointer to a valid SecurityMonitoringSignalRuleType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalRuleType) GetAllowedValues() []SecurityMonitoringSignalRuleType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalRuleType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalRuleType) Ptr() *SecurityMonitoringSignalRuleType
Ptr returns reference to SecurityMonitoringSignalRuleType value.
func (v *SecurityMonitoringSignalRuleType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalState The new triage state of the signal.
type SecurityMonitoringSignalState string
List of SecurityMonitoringSignalState.
const (
SECURITYMONITORINGSIGNALSTATE_OPEN SecurityMonitoringSignalState = "open"
SECURITYMONITORINGSIGNALSTATE_ARCHIVED SecurityMonitoringSignalState = "archived"
SECURITYMONITORINGSIGNALSTATE_UNDER_REVIEW SecurityMonitoringSignalState = "under_review"
)
func NewSecurityMonitoringSignalStateFromValue(v string) (*SecurityMonitoringSignalState, error)
NewSecurityMonitoringSignalStateFromValue returns a pointer to a valid SecurityMonitoringSignalState for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalState) GetAllowedValues() []SecurityMonitoringSignalState
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalState) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalState) Ptr() *SecurityMonitoringSignalState
Ptr returns reference to SecurityMonitoringSignalState value.
func (v *SecurityMonitoringSignalState) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateAttributes Attributes describing the change of state of a security signal.
type SecurityMonitoringSignalStateUpdateAttributes struct {
// Optional comment to display on archived signals.
ArchiveComment *string `json:"archive_comment,omitempty"`
// Reason a signal is archived.
ArchiveReason *SecurityMonitoringSignalArchiveReason `json:"archive_reason,omitempty"`
// The new triage state of the signal.
State SecurityMonitoringSignalState `json:"state"`
// Version of the updated signal. If server side version is higher, update will be rejected.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateAttributes(state SecurityMonitoringSignalState) *SecurityMonitoringSignalStateUpdateAttributes
NewSecurityMonitoringSignalStateUpdateAttributes instantiates a new SecurityMonitoringSignalStateUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateAttributesWithDefaults() *SecurityMonitoringSignalStateUpdateAttributes
NewSecurityMonitoringSignalStateUpdateAttributesWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveComment() string
GetArchiveComment returns the ArchiveComment field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveCommentOk() (*string, bool)
GetArchiveCommentOk returns a tuple with the ArchiveComment field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveReason() SecurityMonitoringSignalArchiveReason
GetArchiveReason returns the ArchiveReason field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetArchiveReasonOk() (*SecurityMonitoringSignalArchiveReason, bool)
GetArchiveReasonOk returns a tuple with the ArchiveReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetState() SecurityMonitoringSignalState
GetState returns the State field value.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetStateOk() (*SecurityMonitoringSignalState, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalStateUpdateAttributes) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasArchiveComment() bool
HasArchiveComment returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasArchiveReason() bool
HasArchiveReason returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalStateUpdateAttributes) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringSignalStateUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetArchiveComment(v string)
SetArchiveComment gets a reference to the given string and assigns it to the ArchiveComment field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetArchiveReason(v SecurityMonitoringSignalArchiveReason)
SetArchiveReason gets a reference to the given SecurityMonitoringSignalArchiveReason and assigns it to the ArchiveReason field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetState(v SecurityMonitoringSignalState)
SetState sets field value.
func (o *SecurityMonitoringSignalStateUpdateAttributes) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringSignalStateUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateData Data containing the patch for changing the state of a signal.
type SecurityMonitoringSignalStateUpdateData struct {
// Attributes describing the change of state of a security signal.
Attributes SecurityMonitoringSignalStateUpdateAttributes `json:"attributes"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateData(attributes SecurityMonitoringSignalStateUpdateAttributes) *SecurityMonitoringSignalStateUpdateData
NewSecurityMonitoringSignalStateUpdateData instantiates a new SecurityMonitoringSignalStateUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateDataWithDefaults() *SecurityMonitoringSignalStateUpdateData
NewSecurityMonitoringSignalStateUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateData) GetAttributes() SecurityMonitoringSignalStateUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *SecurityMonitoringSignalStateUpdateData) GetAttributesOk() (*SecurityMonitoringSignalStateUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalStateUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateData) SetAttributes(v SecurityMonitoringSignalStateUpdateAttributes)
SetAttributes sets field value.
func (o *SecurityMonitoringSignalStateUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalStateUpdateRequest Request body for changing the state of a given security monitoring signal.
type SecurityMonitoringSignalStateUpdateRequest struct {
// Data containing the patch for changing the state of a signal.
Data SecurityMonitoringSignalStateUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalStateUpdateRequest(data SecurityMonitoringSignalStateUpdateData) *SecurityMonitoringSignalStateUpdateRequest
NewSecurityMonitoringSignalStateUpdateRequest instantiates a new SecurityMonitoringSignalStateUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalStateUpdateRequestWithDefaults() *SecurityMonitoringSignalStateUpdateRequest
NewSecurityMonitoringSignalStateUpdateRequestWithDefaults instantiates a new SecurityMonitoringSignalStateUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalStateUpdateRequest) GetData() SecurityMonitoringSignalStateUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalStateUpdateRequest) GetDataOk() (*SecurityMonitoringSignalStateUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalStateUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalStateUpdateRequest) SetData(v SecurityMonitoringSignalStateUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalStateUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageAttributes Attributes describing a triage state update operation over a security signal.
type SecurityMonitoringSignalTriageAttributes struct {
// Optional comment to display on archived signals.
ArchiveComment *string `json:"archive_comment,omitempty"`
// Timestamp of the last edit to the comment.
ArchiveCommentTimestamp *int64 `json:"archive_comment_timestamp,omitempty"`
// Object representing a given user entity.
ArchiveCommentUser *SecurityMonitoringTriageUser `json:"archive_comment_user,omitempty"`
// Reason a signal is archived.
ArchiveReason *SecurityMonitoringSignalArchiveReason `json:"archive_reason,omitempty"`
// Object representing a given user entity.
Assignee SecurityMonitoringTriageUser `json:"assignee"`
// Array of incidents that are associated with this signal.
IncidentIds []int64 `json:"incident_ids"`
// The new triage state of the signal.
State SecurityMonitoringSignalState `json:"state"`
// Timestamp of the last update to the signal state.
StateUpdateTimestamp *int64 `json:"state_update_timestamp,omitempty"`
// Object representing a given user entity.
StateUpdateUser *SecurityMonitoringTriageUser `json:"state_update_user,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageAttributes(assignee SecurityMonitoringTriageUser, incidentIds []int64, state SecurityMonitoringSignalState) *SecurityMonitoringSignalTriageAttributes
NewSecurityMonitoringSignalTriageAttributes instantiates a new SecurityMonitoringSignalTriageAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageAttributesWithDefaults() *SecurityMonitoringSignalTriageAttributes
NewSecurityMonitoringSignalTriageAttributesWithDefaults instantiates a new SecurityMonitoringSignalTriageAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveComment() string
GetArchiveComment returns the ArchiveComment field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentOk() (*string, bool)
GetArchiveCommentOk returns a tuple with the ArchiveComment field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentTimestamp() int64
GetArchiveCommentTimestamp returns the ArchiveCommentTimestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentTimestampOk() (*int64, bool)
GetArchiveCommentTimestampOk returns a tuple with the ArchiveCommentTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentUser() SecurityMonitoringTriageUser
GetArchiveCommentUser returns the ArchiveCommentUser field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveCommentUserOk() (*SecurityMonitoringTriageUser, bool)
GetArchiveCommentUserOk returns a tuple with the ArchiveCommentUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveReason() SecurityMonitoringSignalArchiveReason
GetArchiveReason returns the ArchiveReason field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetArchiveReasonOk() (*SecurityMonitoringSignalArchiveReason, bool)
GetArchiveReasonOk returns a tuple with the ArchiveReason field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetAssignee() SecurityMonitoringTriageUser
GetAssignee returns the Assignee field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetAssigneeOk() (*SecurityMonitoringTriageUser, bool)
GetAssigneeOk returns a tuple with the Assignee field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetIncidentIds() []int64
GetIncidentIds returns the IncidentIds field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetIncidentIdsOk() (*[]int64, bool)
GetIncidentIdsOk returns a tuple with the IncidentIds field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetState() SecurityMonitoringSignalState
GetState returns the State field value.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateOk() (*SecurityMonitoringSignalState, bool)
GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateTimestamp() int64
GetStateUpdateTimestamp returns the StateUpdateTimestamp field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateTimestampOk() (*int64, bool)
GetStateUpdateTimestampOk returns a tuple with the StateUpdateTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateUser() SecurityMonitoringTriageUser
GetStateUpdateUser returns the StateUpdateUser field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageAttributes) GetStateUpdateUserOk() (*SecurityMonitoringTriageUser, bool)
GetStateUpdateUserOk returns a tuple with the StateUpdateUser field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveComment() bool
HasArchiveComment returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveCommentTimestamp() bool
HasArchiveCommentTimestamp returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveCommentUser() bool
HasArchiveCommentUser returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasArchiveReason() bool
HasArchiveReason returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasStateUpdateTimestamp() bool
HasStateUpdateTimestamp returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalTriageAttributes) HasStateUpdateUser() bool
HasStateUpdateUser returns a boolean if a field has been set.
func (o SecurityMonitoringSignalTriageAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveComment(v string)
SetArchiveComment gets a reference to the given string and assigns it to the ArchiveComment field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveCommentTimestamp(v int64)
SetArchiveCommentTimestamp gets a reference to the given int64 and assigns it to the ArchiveCommentTimestamp field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveCommentUser(v SecurityMonitoringTriageUser)
SetArchiveCommentUser gets a reference to the given SecurityMonitoringTriageUser and assigns it to the ArchiveCommentUser field.
func (o *SecurityMonitoringSignalTriageAttributes) SetArchiveReason(v SecurityMonitoringSignalArchiveReason)
SetArchiveReason gets a reference to the given SecurityMonitoringSignalArchiveReason and assigns it to the ArchiveReason field.
func (o *SecurityMonitoringSignalTriageAttributes) SetAssignee(v SecurityMonitoringTriageUser)
SetAssignee sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetIncidentIds(v []int64)
SetIncidentIds sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetState(v SecurityMonitoringSignalState)
SetState sets field value.
func (o *SecurityMonitoringSignalTriageAttributes) SetStateUpdateTimestamp(v int64)
SetStateUpdateTimestamp gets a reference to the given int64 and assigns it to the StateUpdateTimestamp field.
func (o *SecurityMonitoringSignalTriageAttributes) SetStateUpdateUser(v SecurityMonitoringTriageUser)
SetStateUpdateUser gets a reference to the given SecurityMonitoringTriageUser and assigns it to the StateUpdateUser field.
func (o *SecurityMonitoringSignalTriageAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageUpdateData Data containing the updated triage attributes of the signal.
type SecurityMonitoringSignalTriageUpdateData struct {
// Attributes describing a triage state update operation over a security signal.
Attributes *SecurityMonitoringSignalTriageAttributes `json:"attributes,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageUpdateData() *SecurityMonitoringSignalTriageUpdateData
NewSecurityMonitoringSignalTriageUpdateData instantiates a new SecurityMonitoringSignalTriageUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageUpdateDataWithDefaults() *SecurityMonitoringSignalTriageUpdateData
NewSecurityMonitoringSignalTriageUpdateDataWithDefaults instantiates a new SecurityMonitoringSignalTriageUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageUpdateData) GetAttributes() SecurityMonitoringSignalTriageAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalTriageUpdateData) GetAttributesOk() (*SecurityMonitoringSignalTriageAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalTriageUpdateData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o SecurityMonitoringSignalTriageUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageUpdateData) SetAttributes(v SecurityMonitoringSignalTriageAttributes)
SetAttributes gets a reference to the given SecurityMonitoringSignalTriageAttributes and assigns it to the Attributes field.
func (o *SecurityMonitoringSignalTriageUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalTriageUpdateResponse The response returned after all triage operations, containing the updated signal triage data.
type SecurityMonitoringSignalTriageUpdateResponse struct {
// Data containing the updated triage attributes of the signal.
Data SecurityMonitoringSignalTriageUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalTriageUpdateResponse(data SecurityMonitoringSignalTriageUpdateData) *SecurityMonitoringSignalTriageUpdateResponse
NewSecurityMonitoringSignalTriageUpdateResponse instantiates a new SecurityMonitoringSignalTriageUpdateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalTriageUpdateResponseWithDefaults() *SecurityMonitoringSignalTriageUpdateResponse
NewSecurityMonitoringSignalTriageUpdateResponseWithDefaults instantiates a new SecurityMonitoringSignalTriageUpdateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalTriageUpdateResponse) GetData() SecurityMonitoringSignalTriageUpdateData
GetData returns the Data field value.
func (o *SecurityMonitoringSignalTriageUpdateResponse) GetDataOk() (*SecurityMonitoringSignalTriageUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o SecurityMonitoringSignalTriageUpdateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalTriageUpdateResponse) SetData(v SecurityMonitoringSignalTriageUpdateData)
SetData sets field value.
func (o *SecurityMonitoringSignalTriageUpdateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalType The type of event.
type SecurityMonitoringSignalType string
List of SecurityMonitoringSignalType.
const (
SECURITYMONITORINGSIGNALTYPE_SIGNAL SecurityMonitoringSignalType = "signal"
)
func NewSecurityMonitoringSignalTypeFromValue(v string) (*SecurityMonitoringSignalType, error)
NewSecurityMonitoringSignalTypeFromValue returns a pointer to a valid SecurityMonitoringSignalType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalType) GetAllowedValues() []SecurityMonitoringSignalType
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalType) Ptr() *SecurityMonitoringSignalType
Ptr returns reference to SecurityMonitoringSignalType value.
func (v *SecurityMonitoringSignalType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponse The response object with all security signals matching the request and pagination information.
type SecurityMonitoringSignalsListResponse struct {
// An array of security signals matching the request.
Data []SecurityMonitoringSignal `json:"data,omitempty"`
// Links attributes.
Links *SecurityMonitoringSignalsListResponseLinks `json:"links,omitempty"`
// Meta attributes.
Meta *SecurityMonitoringSignalsListResponseMeta `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponse() *SecurityMonitoringSignalsListResponse
NewSecurityMonitoringSignalsListResponse instantiates a new SecurityMonitoringSignalsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseWithDefaults() *SecurityMonitoringSignalsListResponse
NewSecurityMonitoringSignalsListResponseWithDefaults instantiates a new SecurityMonitoringSignalsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponse) GetData() []SecurityMonitoringSignal
GetData returns the Data field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetDataOk() (*[]SecurityMonitoringSignal, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) GetLinks() SecurityMonitoringSignalsListResponseLinks
GetLinks returns the Links field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetLinksOk() (*SecurityMonitoringSignalsListResponseLinks, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) GetMeta() SecurityMonitoringSignalsListResponseMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponse) GetMetaOk() (*SecurityMonitoringSignalsListResponseMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalsListResponse) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *SecurityMonitoringSignalsListResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponse) SetData(v []SecurityMonitoringSignal)
SetData gets a reference to the given []SecurityMonitoringSignal and assigns it to the Data field.
func (o *SecurityMonitoringSignalsListResponse) SetLinks(v SecurityMonitoringSignalsListResponseLinks)
SetLinks gets a reference to the given SecurityMonitoringSignalsListResponseLinks and assigns it to the Links field.
func (o *SecurityMonitoringSignalsListResponse) SetMeta(v SecurityMonitoringSignalsListResponseMeta)
SetMeta gets a reference to the given SecurityMonitoringSignalsListResponseMeta and assigns it to the Meta field.
func (o *SecurityMonitoringSignalsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseLinks Links attributes.
type SecurityMonitoringSignalsListResponseLinks struct {
// The link for the next set of results. **Note**: The request can also be made using the
// POST endpoint.
Next *string `json:"next,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseLinks() *SecurityMonitoringSignalsListResponseLinks
NewSecurityMonitoringSignalsListResponseLinks instantiates a new SecurityMonitoringSignalsListResponseLinks object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseLinksWithDefaults() *SecurityMonitoringSignalsListResponseLinks
NewSecurityMonitoringSignalsListResponseLinksWithDefaults instantiates a new SecurityMonitoringSignalsListResponseLinks object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseLinks) GetNext() string
GetNext returns the Next field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseLinks) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseLinks) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseLinks) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseLinks) SetNext(v string)
SetNext gets a reference to the given string and assigns it to the Next field.
func (o *SecurityMonitoringSignalsListResponseLinks) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseMeta Meta attributes.
type SecurityMonitoringSignalsListResponseMeta struct {
// Paging attributes.
Page *SecurityMonitoringSignalsListResponseMetaPage `json:"page,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseMeta() *SecurityMonitoringSignalsListResponseMeta
NewSecurityMonitoringSignalsListResponseMeta instantiates a new SecurityMonitoringSignalsListResponseMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseMetaWithDefaults() *SecurityMonitoringSignalsListResponseMeta
NewSecurityMonitoringSignalsListResponseMetaWithDefaults instantiates a new SecurityMonitoringSignalsListResponseMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseMeta) GetPage() SecurityMonitoringSignalsListResponseMetaPage
GetPage returns the Page field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseMeta) GetPageOk() (*SecurityMonitoringSignalsListResponseMetaPage, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseMeta) HasPage() bool
HasPage returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseMeta) SetPage(v SecurityMonitoringSignalsListResponseMetaPage)
SetPage gets a reference to the given SecurityMonitoringSignalsListResponseMetaPage and assigns it to the Page field.
func (o *SecurityMonitoringSignalsListResponseMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsListResponseMetaPage Paging attributes.
type SecurityMonitoringSignalsListResponseMetaPage struct {
// The cursor used to get the next results, if any. To make the next request, use the same
// parameters with the addition of the `page[cursor]`.
After *string `json:"after,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringSignalsListResponseMetaPage() *SecurityMonitoringSignalsListResponseMetaPage
NewSecurityMonitoringSignalsListResponseMetaPage instantiates a new SecurityMonitoringSignalsListResponseMetaPage object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringSignalsListResponseMetaPageWithDefaults() *SecurityMonitoringSignalsListResponseMetaPage
NewSecurityMonitoringSignalsListResponseMetaPageWithDefaults instantiates a new SecurityMonitoringSignalsListResponseMetaPage object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringSignalsListResponseMetaPage) GetAfter() string
GetAfter returns the After field value if set, zero value otherwise.
func (o *SecurityMonitoringSignalsListResponseMetaPage) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringSignalsListResponseMetaPage) HasAfter() bool
HasAfter returns a boolean if a field has been set.
func (o SecurityMonitoringSignalsListResponseMetaPage) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringSignalsListResponseMetaPage) SetAfter(v string)
SetAfter gets a reference to the given string and assigns it to the After field.
func (o *SecurityMonitoringSignalsListResponseMetaPage) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringSignalsSort The sort parameters used for querying security signals.
type SecurityMonitoringSignalsSort string
List of SecurityMonitoringSignalsSort.
const (
SECURITYMONITORINGSIGNALSSORT_TIMESTAMP_ASCENDING SecurityMonitoringSignalsSort = "timestamp"
SECURITYMONITORINGSIGNALSSORT_TIMESTAMP_DESCENDING SecurityMonitoringSignalsSort = "-timestamp"
)
func NewSecurityMonitoringSignalsSortFromValue(v string) (*SecurityMonitoringSignalsSort, error)
NewSecurityMonitoringSignalsSortFromValue returns a pointer to a valid SecurityMonitoringSignalsSort for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *SecurityMonitoringSignalsSort) GetAllowedValues() []SecurityMonitoringSignalsSort
GetAllowedValues reeturns the list of possible values.
func (v SecurityMonitoringSignalsSort) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v SecurityMonitoringSignalsSort) Ptr() *SecurityMonitoringSignalsSort
Ptr returns reference to SecurityMonitoringSignalsSort value.
func (v *SecurityMonitoringSignalsSort) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleCreatePayload Create a new rule.
type SecurityMonitoringStandardRuleCreatePayload struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCaseCreate `json:"cases"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// Whether the rule is enabled.
IsEnabled bool `json:"isEnabled"`
// Message for generated signals.
Message string `json:"message"`
// The name of the rule.
Name string `json:"name"`
// Options on rules.
Options SecurityMonitoringRuleOptions `json:"options"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringStandardRuleQuery `json:"queries"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringRuleTypeCreate `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleCreatePayload(cases []SecurityMonitoringRuleCaseCreate, isEnabled bool, message string, name string, options SecurityMonitoringRuleOptions, queries []SecurityMonitoringStandardRuleQuery) *SecurityMonitoringStandardRuleCreatePayload
NewSecurityMonitoringStandardRuleCreatePayload instantiates a new SecurityMonitoringStandardRuleCreatePayload object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleCreatePayloadWithDefaults() *SecurityMonitoringStandardRuleCreatePayload
NewSecurityMonitoringStandardRuleCreatePayloadWithDefaults instantiates a new SecurityMonitoringStandardRuleCreatePayload object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetCases() []SecurityMonitoringRuleCaseCreate
GetCases returns the Cases field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetCasesOk() (*[]SecurityMonitoringRuleCaseCreate, bool)
GetCasesOk returns a tuple with the Cases field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetMessage() string
GetMessage returns the Message field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetName() string
GetName returns the Name field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetQueries() []SecurityMonitoringStandardRuleQuery
GetQueries returns the Queries field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetQueriesOk() (*[]SecurityMonitoringStandardRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetType() SecurityMonitoringRuleTypeCreate
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleCreatePayload) GetTypeOk() (*SecurityMonitoringRuleTypeCreate, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleCreatePayload) HasType() bool
HasType returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleCreatePayload) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetCases(v []SecurityMonitoringRuleCaseCreate)
SetCases sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetIsEnabled(v bool)
SetIsEnabled sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetMessage(v string)
SetMessage sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetName(v string)
SetName sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetQueries(v []SecurityMonitoringStandardRuleQuery)
SetQueries sets field value.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringStandardRuleCreatePayload) SetType(v SecurityMonitoringRuleTypeCreate)
SetType gets a reference to the given SecurityMonitoringRuleTypeCreate and assigns it to the Type field.
func (o *SecurityMonitoringStandardRuleCreatePayload) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleQuery Query for matching rule.
type SecurityMonitoringStandardRuleQuery struct {
// The aggregation type.
Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"`
// Field for which the cardinality is measured. Sent as an array.
DistinctFields []string `json:"distinctFields,omitempty"`
// Fields to group by.
GroupByFields []string `json:"groupByFields,omitempty"`
// The target field to aggregate over when using the sum or max
// aggregations.
Metric *string `json:"metric,omitempty"`
// Group of target fields to aggregate over when using the new value aggregations.
Metrics []string `json:"metrics,omitempty"`
// Name of the query.
Name *string `json:"name,omitempty"`
// Query to run on logs.
Query string `json:"query"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleQuery(query string) *SecurityMonitoringStandardRuleQuery
NewSecurityMonitoringStandardRuleQuery instantiates a new SecurityMonitoringStandardRuleQuery object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleQueryWithDefaults() *SecurityMonitoringStandardRuleQuery
NewSecurityMonitoringStandardRuleQueryWithDefaults instantiates a new SecurityMonitoringStandardRuleQuery object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleQuery) GetAggregation() SecurityMonitoringRuleQueryAggregation
GetAggregation returns the Aggregation field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetAggregationOk() (*SecurityMonitoringRuleQueryAggregation, bool)
GetAggregationOk returns a tuple with the Aggregation field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetDistinctFields() []string
GetDistinctFields returns the DistinctFields field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetDistinctFieldsOk() (*[]string, bool)
GetDistinctFieldsOk returns a tuple with the DistinctFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetGroupByFields() []string
GetGroupByFields returns the GroupByFields field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetGroupByFieldsOk() (*[]string, bool)
GetGroupByFieldsOk returns a tuple with the GroupByFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetMetric() string
GetMetric returns the Metric field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetMetricOk() (*string, bool)
GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetMetrics() []string
GetMetrics returns the Metrics field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetMetricsOk() (*[]string, bool)
GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleQuery) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) GetQuery() string
GetQuery returns the Query field value.
func (o *SecurityMonitoringStandardRuleQuery) GetQueryOk() (*string, bool)
GetQueryOk returns a tuple with the Query field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasAggregation() bool
HasAggregation returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasDistinctFields() bool
HasDistinctFields returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasGroupByFields() bool
HasGroupByFields returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasMetrics() bool
HasMetrics returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleQuery) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleQuery) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleQuery) SetAggregation(v SecurityMonitoringRuleQueryAggregation)
SetAggregation gets a reference to the given SecurityMonitoringRuleQueryAggregation and assigns it to the Aggregation field.
func (o *SecurityMonitoringStandardRuleQuery) SetDistinctFields(v []string)
SetDistinctFields gets a reference to the given []string and assigns it to the DistinctFields field.
func (o *SecurityMonitoringStandardRuleQuery) SetGroupByFields(v []string)
SetGroupByFields gets a reference to the given []string and assigns it to the GroupByFields field.
func (o *SecurityMonitoringStandardRuleQuery) SetMetric(v string)
SetMetric gets a reference to the given string and assigns it to the Metric field.
func (o *SecurityMonitoringStandardRuleQuery) SetMetrics(v []string)
SetMetrics gets a reference to the given []string and assigns it to the Metrics field.
func (o *SecurityMonitoringStandardRuleQuery) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringStandardRuleQuery) SetQuery(v string)
SetQuery sets field value.
func (o *SecurityMonitoringStandardRuleQuery) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringStandardRuleResponse Rule.
type SecurityMonitoringStandardRuleResponse struct {
// Cases for generating signals.
Cases []SecurityMonitoringRuleCase `json:"cases,omitempty"`
// When the rule was created, timestamp in milliseconds.
CreatedAt *int64 `json:"createdAt,omitempty"`
// User ID of the user who created the rule.
CreationAuthorId *int64 `json:"creationAuthorId,omitempty"`
// Additional queries to filter matched events before they are processed.
Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
// Whether the notifications include the triggering group-by values in their title.
HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty"`
// The ID of the rule.
Id *string `json:"id,omitempty"`
// Whether the rule is included by default.
IsDefault *bool `json:"isDefault,omitempty"`
// Whether the rule has been deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// Whether the rule is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
// Message for generated signals.
Message *string `json:"message,omitempty"`
// The name of the rule.
Name *string `json:"name,omitempty"`
// Options on rules.
Options *SecurityMonitoringRuleOptions `json:"options,omitempty"`
// Queries for selecting logs which are part of the rule.
Queries []SecurityMonitoringStandardRuleQuery `json:"queries,omitempty"`
// Tags for generated signals.
Tags []string `json:"tags,omitempty"`
// The rule type.
Type *SecurityMonitoringRuleTypeRead `json:"type,omitempty"`
// User ID of the user who updated the rule.
UpdateAuthorId *int64 `json:"updateAuthorId,omitempty"`
// The version of the rule.
Version *int64 `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringStandardRuleResponse() *SecurityMonitoringStandardRuleResponse
NewSecurityMonitoringStandardRuleResponse instantiates a new SecurityMonitoringStandardRuleResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringStandardRuleResponseWithDefaults() *SecurityMonitoringStandardRuleResponse
NewSecurityMonitoringStandardRuleResponseWithDefaults instantiates a new SecurityMonitoringStandardRuleResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringStandardRuleResponse) GetCases() []SecurityMonitoringRuleCase
GetCases returns the Cases field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCasesOk() (*[]SecurityMonitoringRuleCase, bool)
GetCasesOk returns a tuple with the Cases field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetCreationAuthorId() int64
GetCreationAuthorId returns the CreationAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetCreationAuthorIdOk() (*int64, bool)
GetCreationAuthorIdOk returns a tuple with the CreationAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetFilters() []SecurityMonitoringFilter
GetFilters returns the Filters field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetFiltersOk() (*[]SecurityMonitoringFilter, bool)
GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetHasExtendedTitle() bool
GetHasExtendedTitle returns the HasExtendedTitle field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetHasExtendedTitleOk() (*bool, bool)
GetHasExtendedTitleOk returns a tuple with the HasExtendedTitle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDefault() bool
GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDefaultOk() (*bool, bool)
GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsDeletedOk() (*bool, bool)
GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetIsEnabled() bool
GetIsEnabled returns the IsEnabled field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetIsEnabledOk() (*bool, bool)
GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetOptions() SecurityMonitoringRuleOptions
GetOptions returns the Options field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetOptionsOk() (*SecurityMonitoringRuleOptions, bool)
GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetQueries() []SecurityMonitoringStandardRuleQuery
GetQueries returns the Queries field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetQueriesOk() (*[]SecurityMonitoringStandardRuleQuery, bool)
GetQueriesOk returns a tuple with the Queries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetType() SecurityMonitoringRuleTypeRead
GetType returns the Type field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetTypeOk() (*SecurityMonitoringRuleTypeRead, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetUpdateAuthorId() int64
GetUpdateAuthorId returns the UpdateAuthorId field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetUpdateAuthorIdOk() (*int64, bool)
GetUpdateAuthorIdOk returns a tuple with the UpdateAuthorId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) GetVersion() int64
GetVersion returns the Version field value if set, zero value otherwise.
func (o *SecurityMonitoringStandardRuleResponse) GetVersionOk() (*int64, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCases() bool
HasCases returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasCreationAuthorId() bool
HasCreationAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasFilters() bool
HasFilters returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasHasExtendedTitle() bool
HasHasExtendedTitle returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsDefault() bool
HasIsDefault returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasIsEnabled() bool
HasIsEnabled returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasOptions() bool
HasOptions returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasQueries() bool
HasQueries returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasUpdateAuthorId() bool
HasUpdateAuthorId returns a boolean if a field has been set.
func (o *SecurityMonitoringStandardRuleResponse) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o SecurityMonitoringStandardRuleResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringStandardRuleResponse) SetCases(v []SecurityMonitoringRuleCase)
SetCases gets a reference to the given []SecurityMonitoringRuleCase and assigns it to the Cases field.
func (o *SecurityMonitoringStandardRuleResponse) SetCreatedAt(v int64)
SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
func (o *SecurityMonitoringStandardRuleResponse) SetCreationAuthorId(v int64)
SetCreationAuthorId gets a reference to the given int64 and assigns it to the CreationAuthorId field.
func (o *SecurityMonitoringStandardRuleResponse) SetFilters(v []SecurityMonitoringFilter)
SetFilters gets a reference to the given []SecurityMonitoringFilter and assigns it to the Filters field.
func (o *SecurityMonitoringStandardRuleResponse) SetHasExtendedTitle(v bool)
SetHasExtendedTitle gets a reference to the given bool and assigns it to the HasExtendedTitle field.
func (o *SecurityMonitoringStandardRuleResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsDefault(v bool)
SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsDeleted(v bool)
SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field.
func (o *SecurityMonitoringStandardRuleResponse) SetIsEnabled(v bool)
SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field.
func (o *SecurityMonitoringStandardRuleResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *SecurityMonitoringStandardRuleResponse) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringStandardRuleResponse) SetOptions(v SecurityMonitoringRuleOptions)
SetOptions gets a reference to the given SecurityMonitoringRuleOptions and assigns it to the Options field.
func (o *SecurityMonitoringStandardRuleResponse) SetQueries(v []SecurityMonitoringStandardRuleQuery)
SetQueries gets a reference to the given []SecurityMonitoringStandardRuleQuery and assigns it to the Queries field.
func (o *SecurityMonitoringStandardRuleResponse) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *SecurityMonitoringStandardRuleResponse) SetType(v SecurityMonitoringRuleTypeRead)
SetType gets a reference to the given SecurityMonitoringRuleTypeRead and assigns it to the Type field.
func (o *SecurityMonitoringStandardRuleResponse) SetUpdateAuthorId(v int64)
SetUpdateAuthorId gets a reference to the given int64 and assigns it to the UpdateAuthorId field.
func (o *SecurityMonitoringStandardRuleResponse) SetVersion(v int64)
SetVersion gets a reference to the given int64 and assigns it to the Version field.
func (o *SecurityMonitoringStandardRuleResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SecurityMonitoringTriageUser Object representing a given user entity.
type SecurityMonitoringTriageUser struct {
// The handle for this user account.
Handle *string `json:"handle,omitempty"`
// Numerical ID assigned by Datadog to this user account.
Id *int64 `json:"id,omitempty"`
// The name for this user account.
Name *string `json:"name,omitempty"`
// UUID assigned by Datadog to this user account.
Uuid string `json:"uuid"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewSecurityMonitoringTriageUser(uuid string) *SecurityMonitoringTriageUser
NewSecurityMonitoringTriageUser instantiates a new SecurityMonitoringTriageUser object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewSecurityMonitoringTriageUserWithDefaults() *SecurityMonitoringTriageUser
NewSecurityMonitoringTriageUserWithDefaults instantiates a new SecurityMonitoringTriageUser object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *SecurityMonitoringTriageUser) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *SecurityMonitoringTriageUser) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) GetId() int64
GetId returns the Id field value if set, zero value otherwise.
func (o *SecurityMonitoringTriageUser) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *SecurityMonitoringTriageUser) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) GetUuid() string
GetUuid returns the Uuid field value.
func (o *SecurityMonitoringTriageUser) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value and a boolean to check if the value has been set.
func (o *SecurityMonitoringTriageUser) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *SecurityMonitoringTriageUser) HasId() bool
HasId returns a boolean if a field has been set.
func (o *SecurityMonitoringTriageUser) HasName() bool
HasName returns a boolean if a field has been set.
func (o SecurityMonitoringTriageUser) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *SecurityMonitoringTriageUser) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *SecurityMonitoringTriageUser) SetId(v int64)
SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *SecurityMonitoringTriageUser) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SecurityMonitoringTriageUser) SetUuid(v string)
SetUuid sets field value.
func (o *SecurityMonitoringTriageUser) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateAttributes Attributes of the created user.
type ServiceAccountCreateAttributes struct {
// The email of the user.
Email string `json:"email"`
// The name of the user.
Name *string `json:"name,omitempty"`
// Whether the user is a service account. Must be true.
ServiceAccount bool `json:"service_account"`
// The title of the user.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateAttributes(email string, serviceAccount bool) *ServiceAccountCreateAttributes
NewServiceAccountCreateAttributes instantiates a new ServiceAccountCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateAttributesWithDefaults() *ServiceAccountCreateAttributes
NewServiceAccountCreateAttributesWithDefaults instantiates a new ServiceAccountCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateAttributes) GetEmail() string
GetEmail returns the Email field value.
func (o *ServiceAccountCreateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceAccountCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetServiceAccount() bool
GetServiceAccount returns the ServiceAccount field value.
func (o *ServiceAccountCreateAttributes) GetServiceAccountOk() (*bool, bool)
GetServiceAccountOk returns a tuple with the ServiceAccount field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *ServiceAccountCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *ServiceAccountCreateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o ServiceAccountCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateAttributes) SetEmail(v string)
SetEmail sets field value.
func (o *ServiceAccountCreateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceAccountCreateAttributes) SetServiceAccount(v bool)
SetServiceAccount sets field value.
func (o *ServiceAccountCreateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *ServiceAccountCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateData Object to create a service account User.
type ServiceAccountCreateData struct {
// Attributes of the created user.
Attributes ServiceAccountCreateAttributes `json:"attributes"`
// Relationships of the user object.
Relationships *UserRelationships `json:"relationships,omitempty"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateData(attributes ServiceAccountCreateAttributes, typeVar UsersType) *ServiceAccountCreateData
NewServiceAccountCreateData instantiates a new ServiceAccountCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateDataWithDefaults() *ServiceAccountCreateData
NewServiceAccountCreateDataWithDefaults instantiates a new ServiceAccountCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateData) GetAttributes() ServiceAccountCreateAttributes
GetAttributes returns the Attributes field value.
func (o *ServiceAccountCreateData) GetAttributesOk() (*ServiceAccountCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) GetRelationships() UserRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *ServiceAccountCreateData) GetRelationshipsOk() (*UserRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) GetType() UsersType
GetType returns the Type field value.
func (o *ServiceAccountCreateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceAccountCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o ServiceAccountCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateData) SetAttributes(v ServiceAccountCreateAttributes)
SetAttributes sets field value.
func (o *ServiceAccountCreateData) SetRelationships(v UserRelationships)
SetRelationships gets a reference to the given UserRelationships and assigns it to the Relationships field.
func (o *ServiceAccountCreateData) SetType(v UsersType)
SetType sets field value.
func (o *ServiceAccountCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountCreateRequest Create a service account.
type ServiceAccountCreateRequest struct {
// Object to create a service account User.
Data ServiceAccountCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceAccountCreateRequest(data ServiceAccountCreateData) *ServiceAccountCreateRequest
NewServiceAccountCreateRequest instantiates a new ServiceAccountCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceAccountCreateRequestWithDefaults() *ServiceAccountCreateRequest
NewServiceAccountCreateRequestWithDefaults instantiates a new ServiceAccountCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceAccountCreateRequest) GetData() ServiceAccountCreateData
GetData returns the Data field value.
func (o *ServiceAccountCreateRequest) GetDataOk() (*ServiceAccountCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o ServiceAccountCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceAccountCreateRequest) SetData(v ServiceAccountCreateData)
SetData sets field value.
func (o *ServiceAccountCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceAccountsApi service type
type ServiceAccountsApi datadog.Service
func NewServiceAccountsApi(client *datadog.APIClient) *ServiceAccountsApi
NewServiceAccountsApi Returns NewServiceAccountsApi.
func (a *ServiceAccountsApi) CreateServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, body ApplicationKeyCreateRequest) (ApplicationKeyResponse, *_nethttp.Response, error)
CreateServiceAccountApplicationKey Create an application key for this service account. Create an application key for this service account.
func (a *ServiceAccountsApi) DeleteServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string) (*_nethttp.Response, error)
DeleteServiceAccountApplicationKey Delete an application key for this service account. Delete an application key owned by this service account.
func (a *ServiceAccountsApi) GetServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string) (PartialApplicationKeyResponse, *_nethttp.Response, error)
GetServiceAccountApplicationKey Get one application key for this service account. Get an application key owned by this service account.
func (a *ServiceAccountsApi) ListServiceAccountApplicationKeys(ctx _context.Context, serviceAccountId string, o ...ListServiceAccountApplicationKeysOptionalParameters) (ListApplicationKeysResponse, *_nethttp.Response, error)
ListServiceAccountApplicationKeys List application keys for this service account. List all application keys available for this service account.
func (a *ServiceAccountsApi) UpdateServiceAccountApplicationKey(ctx _context.Context, serviceAccountId string, appKeyId string, body ApplicationKeyUpdateRequest) (PartialApplicationKeyResponse, *_nethttp.Response, error)
UpdateServiceAccountApplicationKey Edit an application key for this service account. Edit an application key owned by this service account.
ServiceDefinitionApi service type
type ServiceDefinitionApi datadog.Service
func NewServiceDefinitionApi(client *datadog.APIClient) *ServiceDefinitionApi
NewServiceDefinitionApi Returns NewServiceDefinitionApi.
func (a *ServiceDefinitionApi) CreateOrUpdateServiceDefinitions(ctx _context.Context, body ServiceDefinitionsCreateRequest) (ServiceDefinitionCreateResponse, *_nethttp.Response, error)
CreateOrUpdateServiceDefinitions Create or update service definition. Create or update service definition in the Datadog Service Catalog.
func (a *ServiceDefinitionApi) DeleteServiceDefinition(ctx _context.Context, serviceName string) (*_nethttp.Response, error)
DeleteServiceDefinition Delete a single service definition. Delete a single service definition in the Datadog Service Catalog.
func (a *ServiceDefinitionApi) GetServiceDefinition(ctx _context.Context, serviceName string) (ServiceDefinitionGetResponse, *_nethttp.Response, error)
GetServiceDefinition Get a single service definition. Get a single service definition from the Datadog Service Catalog.
func (a *ServiceDefinitionApi) ListServiceDefinitions(ctx _context.Context) (ServiceDefinitionsListResponse, *_nethttp.Response, error)
ListServiceDefinitions Get all service definitions. Get a list of all service definitions from the Datadog Service Catalog.
ServiceDefinitionCreateResponse Create service definitions response.
type ServiceDefinitionCreateResponse struct {
// Create service definitions response payload.
Data []ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionCreateResponse() *ServiceDefinitionCreateResponse
NewServiceDefinitionCreateResponse instantiates a new ServiceDefinitionCreateResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionCreateResponseWithDefaults() *ServiceDefinitionCreateResponse
NewServiceDefinitionCreateResponseWithDefaults instantiates a new ServiceDefinitionCreateResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionCreateResponse) GetData() []ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionCreateResponse) GetDataOk() (*[]ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionCreateResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionCreateResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionCreateResponse) SetData(v []ServiceDefinitionData)
SetData gets a reference to the given []ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionCreateResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionData Service definition data.
type ServiceDefinitionData struct {
// Service definition attributes.
Attributes *ServiceDefinitionDataAttributes `json:"attributes,omitempty"`
// Service definition type.
Type *string `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionData() *ServiceDefinitionData
NewServiceDefinitionData instantiates a new ServiceDefinitionData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionDataWithDefaults() *ServiceDefinitionData
NewServiceDefinitionDataWithDefaults instantiates a new ServiceDefinitionData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionData) GetAttributes() ServiceDefinitionDataAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ServiceDefinitionData) GetAttributesOk() (*ServiceDefinitionDataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionData) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (o *ServiceDefinitionData) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *ServiceDefinitionData) HasType() bool
HasType returns a boolean if a field has been set.
func (o ServiceDefinitionData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionData) SetAttributes(v ServiceDefinitionDataAttributes)
SetAttributes gets a reference to the given ServiceDefinitionDataAttributes and assigns it to the Attributes field.
func (o *ServiceDefinitionData) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
func (o *ServiceDefinitionData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionDataAttributes Service definition attributes.
type ServiceDefinitionDataAttributes struct {
// Metadata about a service definition.
Meta *ServiceDefinitionMeta `json:"meta,omitempty"`
// Service definition schema.
Schema *ServiceDefinitionSchema `json:"schema,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionDataAttributes() *ServiceDefinitionDataAttributes
NewServiceDefinitionDataAttributes instantiates a new ServiceDefinitionDataAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionDataAttributesWithDefaults() *ServiceDefinitionDataAttributes
NewServiceDefinitionDataAttributesWithDefaults instantiates a new ServiceDefinitionDataAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionDataAttributes) GetMeta() ServiceDefinitionMeta
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *ServiceDefinitionDataAttributes) GetMetaOk() (*ServiceDefinitionMeta, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionDataAttributes) GetSchema() ServiceDefinitionSchema
GetSchema returns the Schema field value if set, zero value otherwise.
func (o *ServiceDefinitionDataAttributes) GetSchemaOk() (*ServiceDefinitionSchema, bool)
GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionDataAttributes) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o *ServiceDefinitionDataAttributes) HasSchema() bool
HasSchema returns a boolean if a field has been set.
func (o ServiceDefinitionDataAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionDataAttributes) SetMeta(v ServiceDefinitionMeta)
SetMeta gets a reference to the given ServiceDefinitionMeta and assigns it to the Meta field.
func (o *ServiceDefinitionDataAttributes) SetSchema(v ServiceDefinitionSchema)
SetSchema gets a reference to the given ServiceDefinitionSchema and assigns it to the Schema field.
func (o *ServiceDefinitionDataAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionGetResponse Get service definition response.
type ServiceDefinitionGetResponse struct {
// Service definition data.
Data *ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionGetResponse() *ServiceDefinitionGetResponse
NewServiceDefinitionGetResponse instantiates a new ServiceDefinitionGetResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionGetResponseWithDefaults() *ServiceDefinitionGetResponse
NewServiceDefinitionGetResponseWithDefaults instantiates a new ServiceDefinitionGetResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionGetResponse) GetData() ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionGetResponse) GetDataOk() (*ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionGetResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionGetResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionGetResponse) SetData(v ServiceDefinitionData)
SetData gets a reference to the given ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionGetResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionMeta Metadata about a service definition.
type ServiceDefinitionMeta struct {
// GitHub HTML URL.
GithubHtmlUrl *string `json:"github-html-url,omitempty"`
// Ingestion schema version.
IngestedSchemaVersion *string `json:"ingested-schema-version,omitempty"`
// Ingestion source of the service definition.
IngestionSource *string `json:"ingestion-source,omitempty"`
// Last modified time of the service definition.
LastModifiedTime *string `json:"last-modified-time,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionMeta() *ServiceDefinitionMeta
NewServiceDefinitionMeta instantiates a new ServiceDefinitionMeta object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionMetaWithDefaults() *ServiceDefinitionMeta
NewServiceDefinitionMetaWithDefaults instantiates a new ServiceDefinitionMeta object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionMeta) GetGithubHtmlUrl() string
GetGithubHtmlUrl returns the GithubHtmlUrl field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetGithubHtmlUrlOk() (*string, bool)
GetGithubHtmlUrlOk returns a tuple with the GithubHtmlUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetIngestedSchemaVersion() string
GetIngestedSchemaVersion returns the IngestedSchemaVersion field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetIngestedSchemaVersionOk() (*string, bool)
GetIngestedSchemaVersionOk returns a tuple with the IngestedSchemaVersion field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetIngestionSource() string
GetIngestionSource returns the IngestionSource field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetIngestionSourceOk() (*string, bool)
GetIngestionSourceOk returns a tuple with the IngestionSource field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) GetLastModifiedTime() string
GetLastModifiedTime returns the LastModifiedTime field value if set, zero value otherwise.
func (o *ServiceDefinitionMeta) GetLastModifiedTimeOk() (*string, bool)
GetLastModifiedTimeOk returns a tuple with the LastModifiedTime field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionMeta) HasGithubHtmlUrl() bool
HasGithubHtmlUrl returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasIngestedSchemaVersion() bool
HasIngestedSchemaVersion returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasIngestionSource() bool
HasIngestionSource returns a boolean if a field has been set.
func (o *ServiceDefinitionMeta) HasLastModifiedTime() bool
HasLastModifiedTime returns a boolean if a field has been set.
func (o ServiceDefinitionMeta) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionMeta) SetGithubHtmlUrl(v string)
SetGithubHtmlUrl gets a reference to the given string and assigns it to the GithubHtmlUrl field.
func (o *ServiceDefinitionMeta) SetIngestedSchemaVersion(v string)
SetIngestedSchemaVersion gets a reference to the given string and assigns it to the IngestedSchemaVersion field.
func (o *ServiceDefinitionMeta) SetIngestionSource(v string)
SetIngestionSource gets a reference to the given string and assigns it to the IngestionSource field.
func (o *ServiceDefinitionMeta) SetLastModifiedTime(v string)
SetLastModifiedTime gets a reference to the given string and assigns it to the LastModifiedTime field.
func (o *ServiceDefinitionMeta) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionSchema - Service definition schema.
type ServiceDefinitionSchema struct {
ServiceDefinitionV1 *ServiceDefinitionV1
ServiceDefinitionV2 *ServiceDefinitionV2
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionV1AsServiceDefinitionSchema(v *ServiceDefinitionV1) ServiceDefinitionSchema
ServiceDefinitionV1AsServiceDefinitionSchema is a convenience function that returns ServiceDefinitionV1 wrapped in ServiceDefinitionSchema.
func ServiceDefinitionV2AsServiceDefinitionSchema(v *ServiceDefinitionV2) ServiceDefinitionSchema
ServiceDefinitionV2AsServiceDefinitionSchema is a convenience function that returns ServiceDefinitionV2 wrapped in ServiceDefinitionSchema.
func (obj *ServiceDefinitionSchema) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionSchema) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionSchema) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionV1 Deprecated - Service definition V1 for providing additional service metadata and integrations.
Deprecated: This model is deprecated.
type ServiceDefinitionV1 struct {
// Contact information about the service.
Contact *ServiceDefinitionV1Contact `json:"contact,omitempty"`
// Extensions to V1 schema.
Extensions map[string]interface{} `json:"extensions,omitempty"`
// A list of external links related to the services.
ExternalResources []ServiceDefinitionV1Resource `json:"external-resources,omitempty"`
// Basic information about a service.
Info ServiceDefinitionV1Info `json:"info"`
// Third party integrations that Datadog supports.
Integrations *ServiceDefinitionV1Integrations `json:"integrations,omitempty"`
// Org related information about the service.
Org *ServiceDefinitionV1Org `json:"org,omitempty"`
// Schema version being used.
SchemaVersion ServiceDefinitionV1Version `json:"schema-version"`
// A set of custom tags.
Tags []string `json:"tags,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1(info ServiceDefinitionV1Info, schemaVersion ServiceDefinitionV1Version) *ServiceDefinitionV1
NewServiceDefinitionV1 instantiates a new ServiceDefinitionV1 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1WithDefaults() *ServiceDefinitionV1
NewServiceDefinitionV1WithDefaults instantiates a new ServiceDefinitionV1 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1) GetContact() ServiceDefinitionV1Contact
GetContact returns the Contact field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetContactOk() (*ServiceDefinitionV1Contact, bool)
GetContactOk returns a tuple with the Contact field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetExtensions() map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetExtensionsOk() (*map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetExternalResources() []ServiceDefinitionV1Resource
GetExternalResources returns the ExternalResources field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetExternalResourcesOk() (*[]ServiceDefinitionV1Resource, bool)
GetExternalResourcesOk returns a tuple with the ExternalResources field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetInfo() ServiceDefinitionV1Info
GetInfo returns the Info field value.
func (o *ServiceDefinitionV1) GetInfoOk() (*ServiceDefinitionV1Info, bool)
GetInfoOk returns a tuple with the Info field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetIntegrations() ServiceDefinitionV1Integrations
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetIntegrationsOk() (*ServiceDefinitionV1Integrations, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetOrg() ServiceDefinitionV1Org
GetOrg returns the Org field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetOrgOk() (*ServiceDefinitionV1Org, bool)
GetOrgOk returns a tuple with the Org field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetSchemaVersion() ServiceDefinitionV1Version
GetSchemaVersion returns the SchemaVersion field value.
func (o *ServiceDefinitionV1) GetSchemaVersionOk() (*ServiceDefinitionV1Version, bool)
GetSchemaVersionOk returns a tuple with the SchemaVersion field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ServiceDefinitionV1) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1) HasContact() bool
HasContact returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasExternalResources() bool
HasExternalResources returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasOrg() bool
HasOrg returns a boolean if a field has been set.
func (o *ServiceDefinitionV1) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o ServiceDefinitionV1) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1) SetContact(v ServiceDefinitionV1Contact)
SetContact gets a reference to the given ServiceDefinitionV1Contact and assigns it to the Contact field.
func (o *ServiceDefinitionV1) SetExtensions(v map[string]interface{})
SetExtensions gets a reference to the given map[string]interface{} and assigns it to the Extensions field.
func (o *ServiceDefinitionV1) SetExternalResources(v []ServiceDefinitionV1Resource)
SetExternalResources gets a reference to the given []ServiceDefinitionV1Resource and assigns it to the ExternalResources field.
func (o *ServiceDefinitionV1) SetInfo(v ServiceDefinitionV1Info)
SetInfo sets field value.
func (o *ServiceDefinitionV1) SetIntegrations(v ServiceDefinitionV1Integrations)
SetIntegrations gets a reference to the given ServiceDefinitionV1Integrations and assigns it to the Integrations field.
func (o *ServiceDefinitionV1) SetOrg(v ServiceDefinitionV1Org)
SetOrg gets a reference to the given ServiceDefinitionV1Org and assigns it to the Org field.
func (o *ServiceDefinitionV1) SetSchemaVersion(v ServiceDefinitionV1Version)
SetSchemaVersion sets field value.
func (o *ServiceDefinitionV1) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ServiceDefinitionV1) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Contact Contact information about the service.
type ServiceDefinitionV1Contact struct {
// Service owner’s email.
Email *string `json:"email,omitempty"`
// Service owner’s Slack channel.
Slack *string `json:"slack,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Contact() *ServiceDefinitionV1Contact
NewServiceDefinitionV1Contact instantiates a new ServiceDefinitionV1Contact object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1ContactWithDefaults() *ServiceDefinitionV1Contact
NewServiceDefinitionV1ContactWithDefaults instantiates a new ServiceDefinitionV1Contact object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Contact) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Contact) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Contact) GetSlack() string
GetSlack returns the Slack field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Contact) GetSlackOk() (*string, bool)
GetSlackOk returns a tuple with the Slack field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Contact) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Contact) HasSlack() bool
HasSlack returns a boolean if a field has been set.
func (o ServiceDefinitionV1Contact) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Contact) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *ServiceDefinitionV1Contact) SetSlack(v string)
SetSlack gets a reference to the given string and assigns it to the Slack field.
func (o *ServiceDefinitionV1Contact) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Info Basic information about a service.
type ServiceDefinitionV1Info struct {
// Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog.
DdService string `json:"dd-service"`
// A short description of the service.
Description *string `json:"description,omitempty"`
// A friendly name of the service.
DisplayName *string `json:"display-name,omitempty"`
// Service tier.
ServiceTier *string `json:"service-tier,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Info(ddService string) *ServiceDefinitionV1Info
NewServiceDefinitionV1Info instantiates a new ServiceDefinitionV1Info object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1InfoWithDefaults() *ServiceDefinitionV1Info
NewServiceDefinitionV1InfoWithDefaults instantiates a new ServiceDefinitionV1Info object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Info) GetDdService() string
GetDdService returns the DdService field value.
func (o *ServiceDefinitionV1Info) GetDdServiceOk() (*string, bool)
GetDdServiceOk returns a tuple with the DdService field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetDescription() string
GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetDisplayName() string
GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetDisplayNameOk() (*string, bool)
GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) GetServiceTier() string
GetServiceTier returns the ServiceTier field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Info) GetServiceTierOk() (*string, bool)
GetServiceTierOk returns a tuple with the ServiceTier field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Info) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Info) HasDisplayName() bool
HasDisplayName returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Info) HasServiceTier() bool
HasServiceTier returns a boolean if a field has been set.
func (o ServiceDefinitionV1Info) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Info) SetDdService(v string)
SetDdService sets field value.
func (o *ServiceDefinitionV1Info) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ServiceDefinitionV1Info) SetDisplayName(v string)
SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *ServiceDefinitionV1Info) SetServiceTier(v string)
SetServiceTier gets a reference to the given string and assigns it to the ServiceTier field.
func (o *ServiceDefinitionV1Info) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Integrations Third party integrations that Datadog supports.
type ServiceDefinitionV1Integrations struct {
// PagerDuty service URL for the service.
Pagerduty *string `json:"pagerduty,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Integrations() *ServiceDefinitionV1Integrations
NewServiceDefinitionV1Integrations instantiates a new ServiceDefinitionV1Integrations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1IntegrationsWithDefaults() *ServiceDefinitionV1Integrations
NewServiceDefinitionV1IntegrationsWithDefaults instantiates a new ServiceDefinitionV1Integrations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Integrations) GetPagerduty() string
GetPagerduty returns the Pagerduty field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Integrations) GetPagerdutyOk() (*string, bool)
GetPagerdutyOk returns a tuple with the Pagerduty field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Integrations) HasPagerduty() bool
HasPagerduty returns a boolean if a field has been set.
func (o ServiceDefinitionV1Integrations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Integrations) SetPagerduty(v string)
SetPagerduty gets a reference to the given string and assigns it to the Pagerduty field.
func (o *ServiceDefinitionV1Integrations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Org Org related information about the service.
type ServiceDefinitionV1Org struct {
// App feature this service supports.
Application *string `json:"application,omitempty"`
// Team that owns the service.
Team *string `json:"team,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Org() *ServiceDefinitionV1Org
NewServiceDefinitionV1Org instantiates a new ServiceDefinitionV1Org object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1OrgWithDefaults() *ServiceDefinitionV1Org
NewServiceDefinitionV1OrgWithDefaults instantiates a new ServiceDefinitionV1Org object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Org) GetApplication() string
GetApplication returns the Application field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Org) GetApplicationOk() (*string, bool)
GetApplicationOk returns a tuple with the Application field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Org) GetTeam() string
GetTeam returns the Team field value if set, zero value otherwise.
func (o *ServiceDefinitionV1Org) GetTeamOk() (*string, bool)
GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Org) HasApplication() bool
HasApplication returns a boolean if a field has been set.
func (o *ServiceDefinitionV1Org) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o ServiceDefinitionV1Org) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Org) SetApplication(v string)
SetApplication gets a reference to the given string and assigns it to the Application field.
func (o *ServiceDefinitionV1Org) SetTeam(v string)
SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *ServiceDefinitionV1Org) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Resource Service's external links.
type ServiceDefinitionV1Resource struct {
// Link name.
Name string `json:"name"`
// Link type.
Type ServiceDefinitionV1ResourceType `json:"type"`
// Link URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV1Resource(name string, typeVar ServiceDefinitionV1ResourceType, url string) *ServiceDefinitionV1Resource
NewServiceDefinitionV1Resource instantiates a new ServiceDefinitionV1Resource object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV1ResourceWithDefaults() *ServiceDefinitionV1Resource
NewServiceDefinitionV1ResourceWithDefaults instantiates a new ServiceDefinitionV1Resource object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV1Resource) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV1Resource) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Resource) GetType() ServiceDefinitionV1ResourceType
GetType returns the Type field value.
func (o *ServiceDefinitionV1Resource) GetTypeOk() (*ServiceDefinitionV1ResourceType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV1Resource) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV1Resource) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o ServiceDefinitionV1Resource) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV1Resource) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV1Resource) SetType(v ServiceDefinitionV1ResourceType)
SetType sets field value.
func (o *ServiceDefinitionV1Resource) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV1Resource) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1ResourceType Link type.
type ServiceDefinitionV1ResourceType string
List of ServiceDefinitionV1ResourceType.
const (
SERVICEDEFINITIONV1RESOURCETYPE_DOC ServiceDefinitionV1ResourceType = "doc"
SERVICEDEFINITIONV1RESOURCETYPE_WIKI ServiceDefinitionV1ResourceType = "wiki"
SERVICEDEFINITIONV1RESOURCETYPE_RUNBOOK ServiceDefinitionV1ResourceType = "runbook"
SERVICEDEFINITIONV1RESOURCETYPE_URL ServiceDefinitionV1ResourceType = "url"
SERVICEDEFINITIONV1RESOURCETYPE_REPO ServiceDefinitionV1ResourceType = "repo"
SERVICEDEFINITIONV1RESOURCETYPE_DASHBOARD ServiceDefinitionV1ResourceType = "dashboard"
SERVICEDEFINITIONV1RESOURCETYPE_ONCALL ServiceDefinitionV1ResourceType = "oncall"
SERVICEDEFINITIONV1RESOURCETYPE_CODE ServiceDefinitionV1ResourceType = "code"
SERVICEDEFINITIONV1RESOURCETYPE_LINK ServiceDefinitionV1ResourceType = "link"
)
func NewServiceDefinitionV1ResourceTypeFromValue(v string) (*ServiceDefinitionV1ResourceType, error)
NewServiceDefinitionV1ResourceTypeFromValue returns a pointer to a valid ServiceDefinitionV1ResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV1ResourceType) GetAllowedValues() []ServiceDefinitionV1ResourceType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV1ResourceType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV1ResourceType) Ptr() *ServiceDefinitionV1ResourceType
Ptr returns reference to ServiceDefinitionV1ResourceType value.
func (v *ServiceDefinitionV1ResourceType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV1Version Schema version being used.
type ServiceDefinitionV1Version string
List of ServiceDefinitionV1Version.
const (
SERVICEDEFINITIONV1VERSION_V1 ServiceDefinitionV1Version = "v1"
)
func NewServiceDefinitionV1VersionFromValue(v string) (*ServiceDefinitionV1Version, error)
NewServiceDefinitionV1VersionFromValue returns a pointer to a valid ServiceDefinitionV1Version for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV1Version) GetAllowedValues() []ServiceDefinitionV1Version
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV1Version) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV1Version) Ptr() *ServiceDefinitionV1Version
Ptr returns reference to ServiceDefinitionV1Version value.
func (v *ServiceDefinitionV1Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2 Service definition V2 for providing service metadata and integrations.
type ServiceDefinitionV2 struct {
// A list of contacts related to the services.
Contacts []ServiceDefinitionV2Contact `json:"contacts,omitempty"`
// Unique identifier of the service. Must be unique across all services and is used to match with a service in Datadog.
DdService string `json:"dd-service"`
// Experimental feature. A Team handle that matches a Team in the Datadog Teams product.
DdTeam *string `json:"dd-team,omitempty"`
// A list of documentation related to the services.
Docs []ServiceDefinitionV2Doc `json:"docs,omitempty"`
// Extensions to V2 schema.
Extensions map[string]interface{} `json:"extensions,omitempty"`
// Third party integrations that Datadog supports.
Integrations *ServiceDefinitionV2Integrations `json:"integrations,omitempty"`
// A list of links related to the services.
Links []ServiceDefinitionV2Link `json:"links,omitempty"`
// A list of code repositories related to the services.
Repos []ServiceDefinitionV2Repo `json:"repos,omitempty"`
// Schema version being used.
SchemaVersion ServiceDefinitionV2Version `json:"schema-version"`
// A set of custom tags.
Tags []string `json:"tags,omitempty"`
// Team that owns the service.
Team *string `json:"team,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2(ddService string, schemaVersion ServiceDefinitionV2Version) *ServiceDefinitionV2
NewServiceDefinitionV2 instantiates a new ServiceDefinitionV2 object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2WithDefaults() *ServiceDefinitionV2
NewServiceDefinitionV2WithDefaults instantiates a new ServiceDefinitionV2 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2) GetContacts() []ServiceDefinitionV2Contact
GetContacts returns the Contacts field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetContactsOk() (*[]ServiceDefinitionV2Contact, bool)
GetContactsOk returns a tuple with the Contacts field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDdService() string
GetDdService returns the DdService field value.
func (o *ServiceDefinitionV2) GetDdServiceOk() (*string, bool)
GetDdServiceOk returns a tuple with the DdService field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDdTeam() string
GetDdTeam returns the DdTeam field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetDdTeamOk() (*string, bool)
GetDdTeamOk returns a tuple with the DdTeam field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetDocs() []ServiceDefinitionV2Doc
GetDocs returns the Docs field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetDocsOk() (*[]ServiceDefinitionV2Doc, bool)
GetDocsOk returns a tuple with the Docs field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetExtensions() map[string]interface{}
GetExtensions returns the Extensions field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetExtensionsOk() (*map[string]interface{}, bool)
GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetIntegrations() ServiceDefinitionV2Integrations
GetIntegrations returns the Integrations field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetIntegrationsOk() (*ServiceDefinitionV2Integrations, bool)
GetIntegrationsOk returns a tuple with the Integrations field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetLinks() []ServiceDefinitionV2Link
GetLinks returns the Links field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetLinksOk() (*[]ServiceDefinitionV2Link, bool)
GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetRepos() []ServiceDefinitionV2Repo
GetRepos returns the Repos field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetReposOk() (*[]ServiceDefinitionV2Repo, bool)
GetReposOk returns a tuple with the Repos field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetSchemaVersion() ServiceDefinitionV2Version
GetSchemaVersion returns the SchemaVersion field value.
func (o *ServiceDefinitionV2) GetSchemaVersionOk() (*ServiceDefinitionV2Version, bool)
GetSchemaVersionOk returns a tuple with the SchemaVersion field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetTags() []string
GetTags returns the Tags field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetTagsOk() (*[]string, bool)
GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) GetTeam() string
GetTeam returns the Team field value if set, zero value otherwise.
func (o *ServiceDefinitionV2) GetTeamOk() (*string, bool)
GetTeamOk returns a tuple with the Team field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2) HasContacts() bool
HasContacts returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasDdTeam() bool
HasDdTeam returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasDocs() bool
HasDocs returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasExtensions() bool
HasExtensions returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasIntegrations() bool
HasIntegrations returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasLinks() bool
HasLinks returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasRepos() bool
HasRepos returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasTags() bool
HasTags returns a boolean if a field has been set.
func (o *ServiceDefinitionV2) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o ServiceDefinitionV2) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2) SetContacts(v []ServiceDefinitionV2Contact)
SetContacts gets a reference to the given []ServiceDefinitionV2Contact and assigns it to the Contacts field.
func (o *ServiceDefinitionV2) SetDdService(v string)
SetDdService sets field value.
func (o *ServiceDefinitionV2) SetDdTeam(v string)
SetDdTeam gets a reference to the given string and assigns it to the DdTeam field.
func (o *ServiceDefinitionV2) SetDocs(v []ServiceDefinitionV2Doc)
SetDocs gets a reference to the given []ServiceDefinitionV2Doc and assigns it to the Docs field.
func (o *ServiceDefinitionV2) SetExtensions(v map[string]interface{})
SetExtensions gets a reference to the given map[string]interface{} and assigns it to the Extensions field.
func (o *ServiceDefinitionV2) SetIntegrations(v ServiceDefinitionV2Integrations)
SetIntegrations gets a reference to the given ServiceDefinitionV2Integrations and assigns it to the Integrations field.
func (o *ServiceDefinitionV2) SetLinks(v []ServiceDefinitionV2Link)
SetLinks gets a reference to the given []ServiceDefinitionV2Link and assigns it to the Links field.
func (o *ServiceDefinitionV2) SetRepos(v []ServiceDefinitionV2Repo)
SetRepos gets a reference to the given []ServiceDefinitionV2Repo and assigns it to the Repos field.
func (o *ServiceDefinitionV2) SetSchemaVersion(v ServiceDefinitionV2Version)
SetSchemaVersion sets field value.
func (o *ServiceDefinitionV2) SetTags(v []string)
SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *ServiceDefinitionV2) SetTeam(v string)
SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *ServiceDefinitionV2) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Contact - Service owner's contacts information.
type ServiceDefinitionV2Contact struct {
ServiceDefinitionV2Email *ServiceDefinitionV2Email
ServiceDefinitionV2Slack *ServiceDefinitionV2Slack
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionV2EmailAsServiceDefinitionV2Contact(v *ServiceDefinitionV2Email) ServiceDefinitionV2Contact
ServiceDefinitionV2EmailAsServiceDefinitionV2Contact is a convenience function that returns ServiceDefinitionV2Email wrapped in ServiceDefinitionV2Contact.
func ServiceDefinitionV2SlackAsServiceDefinitionV2Contact(v *ServiceDefinitionV2Slack) ServiceDefinitionV2Contact
ServiceDefinitionV2SlackAsServiceDefinitionV2Contact is a convenience function that returns ServiceDefinitionV2Slack wrapped in ServiceDefinitionV2Contact.
func (obj *ServiceDefinitionV2Contact) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionV2Contact) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionV2Contact) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionV2Doc Service documents.
type ServiceDefinitionV2Doc struct {
// Document name.
Name string `json:"name"`
// Document provider.
Provider *string `json:"provider,omitempty"`
// Document URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Doc(name string, url string) *ServiceDefinitionV2Doc
NewServiceDefinitionV2Doc instantiates a new ServiceDefinitionV2Doc object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2DocWithDefaults() *ServiceDefinitionV2Doc
NewServiceDefinitionV2DocWithDefaults instantiates a new ServiceDefinitionV2Doc object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Doc) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Doc) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Doc) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Doc) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Doc) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o ServiceDefinitionV2Doc) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Doc) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Doc) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ServiceDefinitionV2Doc) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Doc) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Email Service owner's email.
type ServiceDefinitionV2Email struct {
// Contact value.
Contact string `json:"contact"`
// Contact email.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2EmailType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Email(contact string, typeVar ServiceDefinitionV2EmailType) *ServiceDefinitionV2Email
NewServiceDefinitionV2Email instantiates a new ServiceDefinitionV2Email object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2EmailWithDefaults() *ServiceDefinitionV2Email
NewServiceDefinitionV2EmailWithDefaults instantiates a new ServiceDefinitionV2Email object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Email) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Email) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Email) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) GetType() ServiceDefinitionV2EmailType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Email) GetTypeOk() (*ServiceDefinitionV2EmailType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Email) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Email) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Email) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Email) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Email) SetType(v ServiceDefinitionV2EmailType)
SetType sets field value.
func (o *ServiceDefinitionV2Email) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2EmailType Contact type.
type ServiceDefinitionV2EmailType string
List of ServiceDefinitionV2EmailType.
const (
SERVICEDEFINITIONV2EMAILTYPE_EMAIL ServiceDefinitionV2EmailType = "email"
)
func NewServiceDefinitionV2EmailTypeFromValue(v string) (*ServiceDefinitionV2EmailType, error)
NewServiceDefinitionV2EmailTypeFromValue returns a pointer to a valid ServiceDefinitionV2EmailType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2EmailType) GetAllowedValues() []ServiceDefinitionV2EmailType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2EmailType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2EmailType) Ptr() *ServiceDefinitionV2EmailType
Ptr returns reference to ServiceDefinitionV2EmailType value.
func (v *ServiceDefinitionV2EmailType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Integrations Third party integrations that Datadog supports.
type ServiceDefinitionV2Integrations struct {
// Opsgenie integration for the service.
Opsgenie *ServiceDefinitionV2Opsgenie `json:"opsgenie,omitempty"`
// PagerDuty service URL for the service.
Pagerduty *string `json:"pagerduty,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Integrations() *ServiceDefinitionV2Integrations
NewServiceDefinitionV2Integrations instantiates a new ServiceDefinitionV2Integrations object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2IntegrationsWithDefaults() *ServiceDefinitionV2Integrations
NewServiceDefinitionV2IntegrationsWithDefaults instantiates a new ServiceDefinitionV2Integrations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Integrations) GetOpsgenie() ServiceDefinitionV2Opsgenie
GetOpsgenie returns the Opsgenie field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Integrations) GetOpsgenieOk() (*ServiceDefinitionV2Opsgenie, bool)
GetOpsgenieOk returns a tuple with the Opsgenie field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Integrations) GetPagerduty() string
GetPagerduty returns the Pagerduty field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Integrations) GetPagerdutyOk() (*string, bool)
GetPagerdutyOk returns a tuple with the Pagerduty field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Integrations) HasOpsgenie() bool
HasOpsgenie returns a boolean if a field has been set.
func (o *ServiceDefinitionV2Integrations) HasPagerduty() bool
HasPagerduty returns a boolean if a field has been set.
func (o ServiceDefinitionV2Integrations) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Integrations) SetOpsgenie(v ServiceDefinitionV2Opsgenie)
SetOpsgenie gets a reference to the given ServiceDefinitionV2Opsgenie and assigns it to the Opsgenie field.
func (o *ServiceDefinitionV2Integrations) SetPagerduty(v string)
SetPagerduty gets a reference to the given string and assigns it to the Pagerduty field.
func (o *ServiceDefinitionV2Integrations) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Link Service's external links.
type ServiceDefinitionV2Link struct {
// Link name.
Name string `json:"name"`
// Link type.
Type ServiceDefinitionV2LinkType `json:"type"`
// Link URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Link(name string, typeVar ServiceDefinitionV2LinkType, url string) *ServiceDefinitionV2Link
NewServiceDefinitionV2Link instantiates a new ServiceDefinitionV2Link object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2LinkWithDefaults() *ServiceDefinitionV2Link
NewServiceDefinitionV2LinkWithDefaults instantiates a new ServiceDefinitionV2Link object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Link) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Link) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Link) GetType() ServiceDefinitionV2LinkType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Link) GetTypeOk() (*ServiceDefinitionV2LinkType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Link) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Link) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o ServiceDefinitionV2Link) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Link) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Link) SetType(v ServiceDefinitionV2LinkType)
SetType sets field value.
func (o *ServiceDefinitionV2Link) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Link) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2LinkType Link type.
type ServiceDefinitionV2LinkType string
List of ServiceDefinitionV2LinkType.
const (
SERVICEDEFINITIONV2LINKTYPE_DOC ServiceDefinitionV2LinkType = "doc"
SERVICEDEFINITIONV2LINKTYPE_WIKI ServiceDefinitionV2LinkType = "wiki"
SERVICEDEFINITIONV2LINKTYPE_RUNBOOK ServiceDefinitionV2LinkType = "runbook"
SERVICEDEFINITIONV2LINKTYPE_URL ServiceDefinitionV2LinkType = "url"
SERVICEDEFINITIONV2LINKTYPE_REPO ServiceDefinitionV2LinkType = "repo"
SERVICEDEFINITIONV2LINKTYPE_DASHBOARD ServiceDefinitionV2LinkType = "dashboard"
SERVICEDEFINITIONV2LINKTYPE_ONCALL ServiceDefinitionV2LinkType = "oncall"
SERVICEDEFINITIONV2LINKTYPE_CODE ServiceDefinitionV2LinkType = "code"
SERVICEDEFINITIONV2LINKTYPE_LINK ServiceDefinitionV2LinkType = "link"
)
func NewServiceDefinitionV2LinkTypeFromValue(v string) (*ServiceDefinitionV2LinkType, error)
NewServiceDefinitionV2LinkTypeFromValue returns a pointer to a valid ServiceDefinitionV2LinkType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2LinkType) GetAllowedValues() []ServiceDefinitionV2LinkType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2LinkType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2LinkType) Ptr() *ServiceDefinitionV2LinkType
Ptr returns reference to ServiceDefinitionV2LinkType value.
func (v *ServiceDefinitionV2LinkType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Opsgenie Opsgenie integration for the service.
type ServiceDefinitionV2Opsgenie struct {
// Opsgenie instance region.
Region *ServiceDefinitionV2OpsgenieRegion `json:"region,omitempty"`
// Opsgenie service id.
ServiceId string `json:"service-id"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Opsgenie(serviceId string) *ServiceDefinitionV2Opsgenie
NewServiceDefinitionV2Opsgenie instantiates a new ServiceDefinitionV2Opsgenie object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2OpsgenieWithDefaults() *ServiceDefinitionV2Opsgenie
NewServiceDefinitionV2OpsgenieWithDefaults instantiates a new ServiceDefinitionV2Opsgenie object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Opsgenie) GetRegion() ServiceDefinitionV2OpsgenieRegion
GetRegion returns the Region field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Opsgenie) GetRegionOk() (*ServiceDefinitionV2OpsgenieRegion, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Opsgenie) GetServiceId() string
GetServiceId returns the ServiceId field value.
func (o *ServiceDefinitionV2Opsgenie) GetServiceIdOk() (*string, bool)
GetServiceIdOk returns a tuple with the ServiceId field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Opsgenie) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (o ServiceDefinitionV2Opsgenie) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Opsgenie) SetRegion(v ServiceDefinitionV2OpsgenieRegion)
SetRegion gets a reference to the given ServiceDefinitionV2OpsgenieRegion and assigns it to the Region field.
func (o *ServiceDefinitionV2Opsgenie) SetServiceId(v string)
SetServiceId sets field value.
func (o *ServiceDefinitionV2Opsgenie) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2OpsgenieRegion Opsgenie instance region.
type ServiceDefinitionV2OpsgenieRegion string
List of ServiceDefinitionV2OpsgenieRegion.
const (
SERVICEDEFINITIONV2OPSGENIEREGION_US ServiceDefinitionV2OpsgenieRegion = "US"
SERVICEDEFINITIONV2OPSGENIEREGION_EU ServiceDefinitionV2OpsgenieRegion = "EU"
)
func NewServiceDefinitionV2OpsgenieRegionFromValue(v string) (*ServiceDefinitionV2OpsgenieRegion, error)
NewServiceDefinitionV2OpsgenieRegionFromValue returns a pointer to a valid ServiceDefinitionV2OpsgenieRegion for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2OpsgenieRegion) GetAllowedValues() []ServiceDefinitionV2OpsgenieRegion
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2OpsgenieRegion) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2OpsgenieRegion) Ptr() *ServiceDefinitionV2OpsgenieRegion
Ptr returns reference to ServiceDefinitionV2OpsgenieRegion value.
func (v *ServiceDefinitionV2OpsgenieRegion) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Repo Service code repositories.
type ServiceDefinitionV2Repo struct {
// Repository name.
Name string `json:"name"`
// Repository provider.
Provider *string `json:"provider,omitempty"`
// Repository URL.
Url string `json:"url"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Repo(name string, url string) *ServiceDefinitionV2Repo
NewServiceDefinitionV2Repo instantiates a new ServiceDefinitionV2Repo object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2RepoWithDefaults() *ServiceDefinitionV2Repo
NewServiceDefinitionV2RepoWithDefaults instantiates a new ServiceDefinitionV2Repo object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Repo) GetName() string
GetName returns the Name field value.
func (o *ServiceDefinitionV2Repo) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) GetProvider() string
GetProvider returns the Provider field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Repo) GetProviderOk() (*string, bool)
GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) GetUrl() string
GetUrl returns the Url field value.
func (o *ServiceDefinitionV2Repo) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Repo) HasProvider() bool
HasProvider returns a boolean if a field has been set.
func (o ServiceDefinitionV2Repo) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Repo) SetName(v string)
SetName sets field value.
func (o *ServiceDefinitionV2Repo) SetProvider(v string)
SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *ServiceDefinitionV2Repo) SetUrl(v string)
SetUrl sets field value.
func (o *ServiceDefinitionV2Repo) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Slack Service owner's Slack channel.
type ServiceDefinitionV2Slack struct {
// Slack Channel.
Contact string `json:"contact"`
// Contact Slack.
Name *string `json:"name,omitempty"`
// Contact type.
Type ServiceDefinitionV2SlackType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionV2Slack(contact string, typeVar ServiceDefinitionV2SlackType) *ServiceDefinitionV2Slack
NewServiceDefinitionV2Slack instantiates a new ServiceDefinitionV2Slack object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionV2SlackWithDefaults() *ServiceDefinitionV2Slack
NewServiceDefinitionV2SlackWithDefaults instantiates a new ServiceDefinitionV2Slack object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionV2Slack) GetContact() string
GetContact returns the Contact field value.
func (o *ServiceDefinitionV2Slack) GetContactOk() (*string, bool)
GetContactOk returns a tuple with the Contact field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceDefinitionV2Slack) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) GetType() ServiceDefinitionV2SlackType
GetType returns the Type field value.
func (o *ServiceDefinitionV2Slack) GetTypeOk() (*ServiceDefinitionV2SlackType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *ServiceDefinitionV2Slack) HasName() bool
HasName returns a boolean if a field has been set.
func (o ServiceDefinitionV2Slack) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionV2Slack) SetContact(v string)
SetContact sets field value.
func (o *ServiceDefinitionV2Slack) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceDefinitionV2Slack) SetType(v ServiceDefinitionV2SlackType)
SetType sets field value.
func (o *ServiceDefinitionV2Slack) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2SlackType Contact type.
type ServiceDefinitionV2SlackType string
List of ServiceDefinitionV2SlackType.
const (
SERVICEDEFINITIONV2SLACKTYPE_SLACK ServiceDefinitionV2SlackType = "slack"
)
func NewServiceDefinitionV2SlackTypeFromValue(v string) (*ServiceDefinitionV2SlackType, error)
NewServiceDefinitionV2SlackTypeFromValue returns a pointer to a valid ServiceDefinitionV2SlackType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2SlackType) GetAllowedValues() []ServiceDefinitionV2SlackType
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2SlackType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2SlackType) Ptr() *ServiceDefinitionV2SlackType
Ptr returns reference to ServiceDefinitionV2SlackType value.
func (v *ServiceDefinitionV2SlackType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionV2Version Schema version being used.
type ServiceDefinitionV2Version string
List of ServiceDefinitionV2Version.
const (
SERVICEDEFINITIONV2VERSION_V2 ServiceDefinitionV2Version = "v2"
)
func NewServiceDefinitionV2VersionFromValue(v string) (*ServiceDefinitionV2Version, error)
NewServiceDefinitionV2VersionFromValue returns a pointer to a valid ServiceDefinitionV2Version for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *ServiceDefinitionV2Version) GetAllowedValues() []ServiceDefinitionV2Version
GetAllowedValues reeturns the list of possible values.
func (v ServiceDefinitionV2Version) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v ServiceDefinitionV2Version) Ptr() *ServiceDefinitionV2Version
Ptr returns reference to ServiceDefinitionV2Version value.
func (v *ServiceDefinitionV2Version) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
ServiceDefinitionsCreateRequest - Create service definitions request.
type ServiceDefinitionsCreateRequest struct {
ServiceDefinitionV2 *ServiceDefinitionV2
ServiceDefinitionRaw *string
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func ServiceDefinitionRawAsServiceDefinitionsCreateRequest(v *string) ServiceDefinitionsCreateRequest
ServiceDefinitionRawAsServiceDefinitionsCreateRequest is a convenience function that returns string wrapped in ServiceDefinitionsCreateRequest.
func ServiceDefinitionV2AsServiceDefinitionsCreateRequest(v *ServiceDefinitionV2) ServiceDefinitionsCreateRequest
ServiceDefinitionV2AsServiceDefinitionsCreateRequest is a convenience function that returns ServiceDefinitionV2 wrapped in ServiceDefinitionsCreateRequest.
func (obj *ServiceDefinitionsCreateRequest) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj ServiceDefinitionsCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *ServiceDefinitionsCreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
ServiceDefinitionsListResponse Create service definitions response.
type ServiceDefinitionsListResponse struct {
// Data representing service definitions.
Data []ServiceDefinitionData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewServiceDefinitionsListResponse() *ServiceDefinitionsListResponse
NewServiceDefinitionsListResponse instantiates a new ServiceDefinitionsListResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewServiceDefinitionsListResponseWithDefaults() *ServiceDefinitionsListResponse
NewServiceDefinitionsListResponseWithDefaults instantiates a new ServiceDefinitionsListResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *ServiceDefinitionsListResponse) GetData() []ServiceDefinitionData
GetData returns the Data field value if set, zero value otherwise.
func (o *ServiceDefinitionsListResponse) GetDataOk() (*[]ServiceDefinitionData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *ServiceDefinitionsListResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o ServiceDefinitionsListResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *ServiceDefinitionsListResponse) SetData(v []ServiceDefinitionData)
SetData gets a reference to the given []ServiceDefinitionData and assigns it to the Data field.
func (o *ServiceDefinitionsListResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
SubmitLogOptionalParameters holds optional parameters for SubmitLog.
type SubmitLogOptionalParameters struct {
ContentEncoding *ContentEncoding
Ddtags *string
}
func NewSubmitLogOptionalParameters() *SubmitLogOptionalParameters
NewSubmitLogOptionalParameters creates an empty struct for parameters.
func (r *SubmitLogOptionalParameters) WithContentEncoding(contentEncoding ContentEncoding) *SubmitLogOptionalParameters
WithContentEncoding sets the corresponding parameter name and returns the struct.
func (r *SubmitLogOptionalParameters) WithDdtags(ddtags string) *SubmitLogOptionalParameters
WithDdtags sets the corresponding parameter name and returns the struct.
SubmitMetricsOptionalParameters holds optional parameters for SubmitMetrics.
type SubmitMetricsOptionalParameters struct {
ContentEncoding *MetricContentEncoding
}
func NewSubmitMetricsOptionalParameters() *SubmitMetricsOptionalParameters
NewSubmitMetricsOptionalParameters creates an empty struct for parameters.
func (r *SubmitMetricsOptionalParameters) WithContentEncoding(contentEncoding MetricContentEncoding) *SubmitMetricsOptionalParameters
WithContentEncoding sets the corresponding parameter name and returns the struct.
UpdateIncidentAttachmentsOptionalParameters holds optional parameters for UpdateIncidentAttachments.
type UpdateIncidentAttachmentsOptionalParameters struct {
Include *[]IncidentAttachmentRelatedObject
}
func NewUpdateIncidentAttachmentsOptionalParameters() *UpdateIncidentAttachmentsOptionalParameters
NewUpdateIncidentAttachmentsOptionalParameters creates an empty struct for parameters.
func (r *UpdateIncidentAttachmentsOptionalParameters) WithInclude(include []IncidentAttachmentRelatedObject) *UpdateIncidentAttachmentsOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
UpdateIncidentOptionalParameters holds optional parameters for UpdateIncident.
type UpdateIncidentOptionalParameters struct {
Include *[]IncidentRelatedObject
}
func NewUpdateIncidentOptionalParameters() *UpdateIncidentOptionalParameters
NewUpdateIncidentOptionalParameters creates an empty struct for parameters.
func (r *UpdateIncidentOptionalParameters) WithInclude(include []IncidentRelatedObject) *UpdateIncidentOptionalParameters
WithInclude sets the corresponding parameter name and returns the struct.
UploadIdPMetadataOptionalParameters holds optional parameters for UploadIdPMetadata.
type UploadIdPMetadataOptionalParameters struct {
IdpFile **os.File
}
func NewUploadIdPMetadataOptionalParameters() *UploadIdPMetadataOptionalParameters
NewUploadIdPMetadataOptionalParameters creates an empty struct for parameters.
func (r *UploadIdPMetadataOptionalParameters) WithIdpFile(idpFile *os.File) *UploadIdPMetadataOptionalParameters
WithIdpFile sets the corresponding parameter name and returns the struct.
UsageApplicationSecurityMonitoringResponse Application Security Monitoring usage response.
type UsageApplicationSecurityMonitoringResponse struct {
// Response containing Application Security Monitoring usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageApplicationSecurityMonitoringResponse() *UsageApplicationSecurityMonitoringResponse
NewUsageApplicationSecurityMonitoringResponse instantiates a new UsageApplicationSecurityMonitoringResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageApplicationSecurityMonitoringResponseWithDefaults() *UsageApplicationSecurityMonitoringResponse
NewUsageApplicationSecurityMonitoringResponseWithDefaults instantiates a new UsageApplicationSecurityMonitoringResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageApplicationSecurityMonitoringResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageApplicationSecurityMonitoringResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageApplicationSecurityMonitoringResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageApplicationSecurityMonitoringResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageApplicationSecurityMonitoringResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageApplicationSecurityMonitoringResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageAttributesObject Usage attributes data.
type UsageAttributesObject struct {
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The product for which usage is being reported.
ProductFamily *string `json:"product_family,omitempty"`
// The organization public ID.
PublicId *string `json:"public_id,omitempty"`
// List of usage data reported for each requested hour.
Timeseries []UsageTimeSeriesObject `json:"timeseries,omitempty"`
// Usage type that is being measured.
UsageType *HourlyUsageType `json:"usage_type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageAttributesObject() *UsageAttributesObject
NewUsageAttributesObject instantiates a new UsageAttributesObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageAttributesObjectWithDefaults() *UsageAttributesObject
NewUsageAttributesObjectWithDefaults instantiates a new UsageAttributesObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageAttributesObject) GetOrgName() string
GetOrgName returns the OrgName field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetOrgNameOk() (*string, bool)
GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetProductFamily() string
GetProductFamily returns the ProductFamily field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetProductFamilyOk() (*string, bool)
GetProductFamilyOk returns a tuple with the ProductFamily field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetPublicId() string
GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetPublicIdOk() (*string, bool)
GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetTimeseries() []UsageTimeSeriesObject
GetTimeseries returns the Timeseries field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetTimeseriesOk() (*[]UsageTimeSeriesObject, bool)
GetTimeseriesOk returns a tuple with the Timeseries field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) GetUsageType() HourlyUsageType
GetUsageType returns the UsageType field value if set, zero value otherwise.
func (o *UsageAttributesObject) GetUsageTypeOk() (*HourlyUsageType, bool)
GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageAttributesObject) HasOrgName() bool
HasOrgName returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasProductFamily() bool
HasProductFamily returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasPublicId() bool
HasPublicId returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasTimeseries() bool
HasTimeseries returns a boolean if a field has been set.
func (o *UsageAttributesObject) HasUsageType() bool
HasUsageType returns a boolean if a field has been set.
func (o UsageAttributesObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageAttributesObject) SetOrgName(v string)
SetOrgName gets a reference to the given string and assigns it to the OrgName field.
func (o *UsageAttributesObject) SetProductFamily(v string)
SetProductFamily gets a reference to the given string and assigns it to the ProductFamily field.
func (o *UsageAttributesObject) SetPublicId(v string)
SetPublicId gets a reference to the given string and assigns it to the PublicId field.
func (o *UsageAttributesObject) SetTimeseries(v []UsageTimeSeriesObject)
SetTimeseries gets a reference to the given []UsageTimeSeriesObject and assigns it to the Timeseries field.
func (o *UsageAttributesObject) SetUsageType(v HourlyUsageType)
SetUsageType gets a reference to the given HourlyUsageType and assigns it to the UsageType field.
func (o *UsageAttributesObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageDataObject Usage data.
type UsageDataObject struct {
// Usage attributes data.
Attributes *UsageAttributesObject `json:"attributes,omitempty"`
// Unique ID of the response.
Id *string `json:"id,omitempty"`
// Type of usage data.
Type *UsageTimeSeriesType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageDataObject() *UsageDataObject
NewUsageDataObject instantiates a new UsageDataObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageDataObjectWithDefaults() *UsageDataObject
NewUsageDataObjectWithDefaults instantiates a new UsageDataObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageDataObject) GetAttributes() UsageAttributesObject
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UsageDataObject) GetAttributesOk() (*UsageAttributesObject, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *UsageDataObject) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) GetType() UsageTimeSeriesType
GetType returns the Type field value if set, zero value otherwise.
func (o *UsageDataObject) GetTypeOk() (*UsageTimeSeriesType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageDataObject) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UsageDataObject) HasId() bool
HasId returns a boolean if a field has been set.
func (o *UsageDataObject) HasType() bool
HasType returns a boolean if a field has been set.
func (o UsageDataObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageDataObject) SetAttributes(v UsageAttributesObject)
SetAttributes gets a reference to the given UsageAttributesObject and assigns it to the Attributes field.
func (o *UsageDataObject) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *UsageDataObject) SetType(v UsageTimeSeriesType)
SetType gets a reference to the given UsageTimeSeriesType and assigns it to the Type field.
func (o *UsageDataObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageLambdaTracedInvocationsResponse Lambda Traced Invocations usage response.
type UsageLambdaTracedInvocationsResponse struct {
// Response containing Lambda Traced Invocations usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageLambdaTracedInvocationsResponse() *UsageLambdaTracedInvocationsResponse
NewUsageLambdaTracedInvocationsResponse instantiates a new UsageLambdaTracedInvocationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageLambdaTracedInvocationsResponseWithDefaults() *UsageLambdaTracedInvocationsResponse
NewUsageLambdaTracedInvocationsResponseWithDefaults instantiates a new UsageLambdaTracedInvocationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageLambdaTracedInvocationsResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageLambdaTracedInvocationsResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageLambdaTracedInvocationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageLambdaTracedInvocationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageLambdaTracedInvocationsResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageLambdaTracedInvocationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageMeteringApi service type
type UsageMeteringApi datadog.Service
func NewUsageMeteringApi(client *datadog.APIClient) *UsageMeteringApi
NewUsageMeteringApi Returns NewUsageMeteringApi.
func (a *UsageMeteringApi) GetCostByOrg(ctx _context.Context, startMonth time.Time, o ...GetCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetCostByOrg Get cost across multi-org account. Get cost across multi-org account. Cost by org data for a given month becomes available no later than the 16th of the following month. **Note:** This endpoint has been deprecated. Please use the new endpoint [`/historical_cost`](https://docs.datadoghq.com/api/latest/usage-metering/#get-historical-cost-across-your-account) instead.
Deprecated: This API is deprecated.
func (a *UsageMeteringApi) GetEstimatedCostByOrg(ctx _context.Context, o ...GetEstimatedCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetEstimatedCostByOrg Get estimated cost across your account. Get estimated cost across multi-org and single root-org accounts. Estimated cost data is only available for the current month and previous month. To access historical costs prior to this, use the `/historical_cost` endpoint.
func (a *UsageMeteringApi) GetHistoricalCostByOrg(ctx _context.Context, startMonth time.Time, o ...GetHistoricalCostByOrgOptionalParameters) (CostByOrgResponse, *_nethttp.Response, error)
GetHistoricalCostByOrg Get historical cost across your account. Get historical cost across multi-org and single root-org accounts. Cost data for a given month becomes available no later than the 16th of the following month.
func (a *UsageMeteringApi) GetHourlyUsage(ctx _context.Context, filterTimestampStart time.Time, filterProductFamilies string, o ...GetHourlyUsageOptionalParameters) (HourlyUsageResponse, *_nethttp.Response, error)
GetHourlyUsage Get hourly usage by product family. Get hourly usage by product family
func (a *UsageMeteringApi) GetUsageApplicationSecurityMonitoring(ctx _context.Context, startHr time.Time, o ...GetUsageApplicationSecurityMonitoringOptionalParameters) (UsageApplicationSecurityMonitoringResponse, *_nethttp.Response, error)
GetUsageApplicationSecurityMonitoring Get hourly usage for application security. Get hourly usage for application security . **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
func (a *UsageMeteringApi) GetUsageLambdaTracedInvocations(ctx _context.Context, startHr time.Time, o ...GetUsageLambdaTracedInvocationsOptionalParameters) (UsageLambdaTracedInvocationsResponse, *_nethttp.Response, error)
GetUsageLambdaTracedInvocations Get hourly usage for lambda traced invocations. Get hourly usage for lambda traced invocations. **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
func (a *UsageMeteringApi) GetUsageObservabilityPipelines(ctx _context.Context, startHr time.Time, o ...GetUsageObservabilityPipelinesOptionalParameters) (UsageObservabilityPipelinesResponse, *_nethttp.Response, error)
GetUsageObservabilityPipelines Get hourly usage for observability pipelines. Get hourly usage for observability pipelines. **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
UsageObservabilityPipelinesResponse Observability Pipelines usage response.
type UsageObservabilityPipelinesResponse struct {
// Response containing Observability Pipelines usage.
Data []UsageDataObject `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageObservabilityPipelinesResponse() *UsageObservabilityPipelinesResponse
NewUsageObservabilityPipelinesResponse instantiates a new UsageObservabilityPipelinesResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageObservabilityPipelinesResponseWithDefaults() *UsageObservabilityPipelinesResponse
NewUsageObservabilityPipelinesResponseWithDefaults instantiates a new UsageObservabilityPipelinesResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageObservabilityPipelinesResponse) GetData() []UsageDataObject
GetData returns the Data field value if set, zero value otherwise.
func (o *UsageObservabilityPipelinesResponse) GetDataOk() (*[]UsageDataObject, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageObservabilityPipelinesResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UsageObservabilityPipelinesResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageObservabilityPipelinesResponse) SetData(v []UsageDataObject)
SetData gets a reference to the given []UsageDataObject and assigns it to the Data field.
func (o *UsageObservabilityPipelinesResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsageTimeSeriesObject Usage timeseries data.
type UsageTimeSeriesObject struct {
// Datetime in ISO-8601 format, UTC. The hour for the usage.
Timestamp *time.Time `json:"timestamp,omitempty"`
// Contains the number measured for the given usage_type during the hour.
Value datadog.NullableInt64 `json:"value,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsageTimeSeriesObject() *UsageTimeSeriesObject
NewUsageTimeSeriesObject instantiates a new UsageTimeSeriesObject object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsageTimeSeriesObjectWithDefaults() *UsageTimeSeriesObject
NewUsageTimeSeriesObjectWithDefaults instantiates a new UsageTimeSeriesObject object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsageTimeSeriesObject) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *UsageTimeSeriesObject) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsageTimeSeriesObject) GetValue() int64
GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UsageTimeSeriesObject) GetValueOk() (*int64, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UsageTimeSeriesObject) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *UsageTimeSeriesObject) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o UsageTimeSeriesObject) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsageTimeSeriesObject) SetTimestamp(v time.Time)
SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *UsageTimeSeriesObject) SetValue(v int64)
SetValue gets a reference to the given datadog.NullableInt64 and assigns it to the Value field.
func (o *UsageTimeSeriesObject) SetValueNil()
SetValueNil sets the value for Value to be an explicit nil.
func (o *UsageTimeSeriesObject) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *UsageTimeSeriesObject) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil.
UsageTimeSeriesType Type of usage data.
type UsageTimeSeriesType string
List of UsageTimeSeriesType.
const (
USAGETIMESERIESTYPE_USAGE_TIMESERIES UsageTimeSeriesType = "usage_timeseries"
)
func NewUsageTimeSeriesTypeFromValue(v string) (*UsageTimeSeriesType, error)
NewUsageTimeSeriesTypeFromValue returns a pointer to a valid UsageTimeSeriesType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UsageTimeSeriesType) GetAllowedValues() []UsageTimeSeriesType
GetAllowedValues reeturns the list of possible values.
func (v UsageTimeSeriesType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UsageTimeSeriesType) Ptr() *UsageTimeSeriesType
Ptr returns reference to UsageTimeSeriesType value.
func (v *UsageTimeSeriesType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
User User object returned by the API.
type User struct {
// Attributes of user object returned by the API.
Attributes *UserAttributes `json:"attributes,omitempty"`
// ID of the user.
Id *string `json:"id,omitempty"`
// Relationships of the user object returned by the API.
Relationships *UserResponseRelationships `json:"relationships,omitempty"`
// Users resource type.
Type *UsersType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUser() *User
NewUser instantiates a new User object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserWithDefaults() *User
NewUserWithDefaults instantiates a new User object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *User) GetAttributes() UserAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *User) GetAttributesOk() (*UserAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *User) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetRelationships() UserResponseRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *User) GetRelationshipsOk() (*UserResponseRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) GetType() UsersType
GetType returns the Type field value if set, zero value otherwise.
func (o *User) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *User) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *User) HasId() bool
HasId returns a boolean if a field has been set.
func (o *User) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o *User) HasType() bool
HasType returns a boolean if a field has been set.
func (o User) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *User) SetAttributes(v UserAttributes)
SetAttributes gets a reference to the given UserAttributes and assigns it to the Attributes field.
func (o *User) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *User) SetRelationships(v UserResponseRelationships)
SetRelationships gets a reference to the given UserResponseRelationships and assigns it to the Relationships field.
func (o *User) SetType(v UsersType)
SetType gets a reference to the given UsersType and assigns it to the Type field.
func (o *User) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserAttributes Attributes of user object returned by the API.
type UserAttributes struct {
// Creation time of the user.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Whether the user is disabled.
Disabled *bool `json:"disabled,omitempty"`
// Email of the user.
Email *string `json:"email,omitempty"`
// Handle of the user.
Handle *string `json:"handle,omitempty"`
// URL of the user's icon.
Icon *string `json:"icon,omitempty"`
// Time that the user was last modified.
ModifiedAt *time.Time `json:"modified_at,omitempty"`
// Name of the user.
Name datadog.NullableString `json:"name,omitempty"`
// Whether the user is a service account.
ServiceAccount *bool `json:"service_account,omitempty"`
// Status of the user.
Status *string `json:"status,omitempty"`
// Title of the user.
Title datadog.NullableString `json:"title,omitempty"`
// Whether the user is verified.
Verified *bool `json:"verified,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserAttributes() *UserAttributes
NewUserAttributes instantiates a new UserAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserAttributesWithDefaults() *UserAttributes
NewUserAttributesWithDefaults instantiates a new UserAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *UserAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *UserAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *UserAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetHandle() string
GetHandle returns the Handle field value if set, zero value otherwise.
func (o *UserAttributes) GetHandleOk() (*string, bool)
GetHandleOk returns a tuple with the Handle field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetIcon() string
GetIcon returns the Icon field value if set, zero value otherwise.
func (o *UserAttributes) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetModifiedAt() time.Time
GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
func (o *UserAttributes) GetModifiedAtOk() (*time.Time, bool)
GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UserAttributes) GetServiceAccount() bool
GetServiceAccount returns the ServiceAccount field value if set, zero value otherwise.
func (o *UserAttributes) GetServiceAccountOk() (*bool, bool)
GetServiceAccountOk returns a tuple with the ServiceAccount field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetStatus() string
GetStatus returns the Status field value if set, zero value otherwise.
func (o *UserAttributes) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.
func (o *UserAttributes) GetVerified() bool
GetVerified returns the Verified field value if set, zero value otherwise.
func (o *UserAttributes) GetVerifiedOk() (*bool, bool)
GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *UserAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *UserAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *UserAttributes) HasHandle() bool
HasHandle returns a boolean if a field has been set.
func (o *UserAttributes) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *UserAttributes) HasModifiedAt() bool
HasModifiedAt returns a boolean if a field has been set.
func (o *UserAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UserAttributes) HasServiceAccount() bool
HasServiceAccount returns a boolean if a field has been set.
func (o *UserAttributes) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (o *UserAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *UserAttributes) HasVerified() bool
HasVerified returns a boolean if a field has been set.
func (o UserAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *UserAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *UserAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *UserAttributes) SetHandle(v string)
SetHandle gets a reference to the given string and assigns it to the Handle field.
func (o *UserAttributes) SetIcon(v string)
SetIcon gets a reference to the given string and assigns it to the Icon field.
func (o *UserAttributes) SetModifiedAt(v time.Time)
SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field.
func (o *UserAttributes) SetName(v string)
SetName gets a reference to the given datadog.NullableString and assigns it to the Name field.
func (o *UserAttributes) SetNameNil()
SetNameNil sets the value for Name to be an explicit nil.
func (o *UserAttributes) SetServiceAccount(v bool)
SetServiceAccount gets a reference to the given bool and assigns it to the ServiceAccount field.
func (o *UserAttributes) SetStatus(v string)
SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *UserAttributes) SetTitle(v string)
SetTitle gets a reference to the given datadog.NullableString and assigns it to the Title field.
func (o *UserAttributes) SetTitleNil()
SetTitleNil sets the value for Title to be an explicit nil.
func (o *UserAttributes) SetVerified(v bool)
SetVerified gets a reference to the given bool and assigns it to the Verified field.
func (o *UserAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
func (o *UserAttributes) UnsetName()
UnsetName ensures that no value is present for Name, not even an explicit nil.
func (o *UserAttributes) UnsetTitle()
UnsetTitle ensures that no value is present for Title, not even an explicit nil.
UserCreateAttributes Attributes of the created user.
type UserCreateAttributes struct {
// The email of the user.
Email string `json:"email"`
// The name of the user.
Name *string `json:"name,omitempty"`
// The title of the user.
Title *string `json:"title,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateAttributes(email string) *UserCreateAttributes
NewUserCreateAttributes instantiates a new UserCreateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateAttributesWithDefaults() *UserCreateAttributes
NewUserCreateAttributesWithDefaults instantiates a new UserCreateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateAttributes) GetEmail() string
GetEmail returns the Email field value.
func (o *UserCreateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.
func (o *UserCreateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *UserCreateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateAttributes) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (o *UserCreateAttributes) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UserCreateAttributes) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o UserCreateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateAttributes) SetEmail(v string)
SetEmail sets field value.
func (o *UserCreateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UserCreateAttributes) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *UserCreateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserCreateData Object to create a user.
type UserCreateData struct {
// Attributes of the created user.
Attributes UserCreateAttributes `json:"attributes"`
// Relationships of the user object.
Relationships *UserRelationships `json:"relationships,omitempty"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateData(attributes UserCreateAttributes, typeVar UsersType) *UserCreateData
NewUserCreateData instantiates a new UserCreateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateDataWithDefaults() *UserCreateData
NewUserCreateDataWithDefaults instantiates a new UserCreateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateData) GetAttributes() UserCreateAttributes
GetAttributes returns the Attributes field value.
func (o *UserCreateData) GetAttributesOk() (*UserCreateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *UserCreateData) GetRelationships() UserRelationships
GetRelationships returns the Relationships field value if set, zero value otherwise.
func (o *UserCreateData) GetRelationshipsOk() (*UserRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserCreateData) GetType() UsersType
GetType returns the Type field value.
func (o *UserCreateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o *UserCreateData) HasRelationships() bool
HasRelationships returns a boolean if a field has been set.
func (o UserCreateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateData) SetAttributes(v UserCreateAttributes)
SetAttributes sets field value.
func (o *UserCreateData) SetRelationships(v UserRelationships)
SetRelationships gets a reference to the given UserRelationships and assigns it to the Relationships field.
func (o *UserCreateData) SetType(v UsersType)
SetType sets field value.
func (o *UserCreateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserCreateRequest Create a user.
type UserCreateRequest struct {
// Object to create a user.
Data UserCreateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserCreateRequest(data UserCreateData) *UserCreateRequest
NewUserCreateRequest instantiates a new UserCreateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserCreateRequestWithDefaults() *UserCreateRequest
NewUserCreateRequestWithDefaults instantiates a new UserCreateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserCreateRequest) GetData() UserCreateData
GetData returns the Data field value.
func (o *UserCreateRequest) GetDataOk() (*UserCreateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserCreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserCreateRequest) SetData(v UserCreateData)
SetData sets field value.
func (o *UserCreateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationData Object to create a user invitation.
type UserInvitationData struct {
// Relationships data for user invitation.
Relationships UserInvitationRelationships `json:"relationships"`
// User invitations type.
Type UserInvitationsType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationData(relationships UserInvitationRelationships, typeVar UserInvitationsType) *UserInvitationData
NewUserInvitationData instantiates a new UserInvitationData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationDataWithDefaults() *UserInvitationData
NewUserInvitationDataWithDefaults instantiates a new UserInvitationData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationData) GetRelationships() UserInvitationRelationships
GetRelationships returns the Relationships field value.
func (o *UserInvitationData) GetRelationshipsOk() (*UserInvitationRelationships, bool)
GetRelationshipsOk returns a tuple with the Relationships field value and a boolean to check if the value has been set.
func (o *UserInvitationData) GetType() UserInvitationsType
GetType returns the Type field value.
func (o *UserInvitationData) GetTypeOk() (*UserInvitationsType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o UserInvitationData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationData) SetRelationships(v UserInvitationRelationships)
SetRelationships sets field value.
func (o *UserInvitationData) SetType(v UserInvitationsType)
SetType sets field value.
func (o *UserInvitationData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationDataAttributes Attributes of a user invitation.
type UserInvitationDataAttributes struct {
// Creation time of the user invitation.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Time of invitation expiration.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Type of invitation.
InviteType *string `json:"invite_type,omitempty"`
// UUID of the user invitation.
Uuid *string `json:"uuid,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationDataAttributes() *UserInvitationDataAttributes
NewUserInvitationDataAttributes instantiates a new UserInvitationDataAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationDataAttributesWithDefaults() *UserInvitationDataAttributes
NewUserInvitationDataAttributesWithDefaults instantiates a new UserInvitationDataAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationDataAttributes) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetExpiresAt() time.Time
GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetExpiresAtOk() (*time.Time, bool)
GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetInviteType() string
GetInviteType returns the InviteType field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetInviteTypeOk() (*string, bool)
GetInviteTypeOk returns a tuple with the InviteType field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) GetUuid() string
GetUuid returns the Uuid field value if set, zero value otherwise.
func (o *UserInvitationDataAttributes) GetUuidOk() (*string, bool)
GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationDataAttributes) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasExpiresAt() bool
HasExpiresAt returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasInviteType() bool
HasInviteType returns a boolean if a field has been set.
func (o *UserInvitationDataAttributes) HasUuid() bool
HasUuid returns a boolean if a field has been set.
func (o UserInvitationDataAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationDataAttributes) SetCreatedAt(v time.Time)
SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *UserInvitationDataAttributes) SetExpiresAt(v time.Time)
SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field.
func (o *UserInvitationDataAttributes) SetInviteType(v string)
SetInviteType gets a reference to the given string and assigns it to the InviteType field.
func (o *UserInvitationDataAttributes) SetUuid(v string)
SetUuid gets a reference to the given string and assigns it to the Uuid field.
func (o *UserInvitationDataAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationRelationships Relationships data for user invitation.
type UserInvitationRelationships struct {
// Relationship to user.
User RelationshipToUser `json:"user"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationRelationships(user RelationshipToUser) *UserInvitationRelationships
NewUserInvitationRelationships instantiates a new UserInvitationRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationRelationshipsWithDefaults() *UserInvitationRelationships
NewUserInvitationRelationshipsWithDefaults instantiates a new UserInvitationRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationRelationships) GetUser() RelationshipToUser
GetUser returns the User field value.
func (o *UserInvitationRelationships) GetUserOk() (*RelationshipToUser, bool)
GetUserOk returns a tuple with the User field value and a boolean to check if the value has been set.
func (o UserInvitationRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationRelationships) SetUser(v RelationshipToUser)
SetUser sets field value.
func (o *UserInvitationRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationResponse User invitation as returned by the API.
type UserInvitationResponse struct {
// Object of a user invitation returned by the API.
Data *UserInvitationResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationResponse() *UserInvitationResponse
NewUserInvitationResponse instantiates a new UserInvitationResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationResponseWithDefaults() *UserInvitationResponse
NewUserInvitationResponseWithDefaults instantiates a new UserInvitationResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationResponse) GetData() UserInvitationResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *UserInvitationResponse) GetDataOk() (*UserInvitationResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UserInvitationResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationResponse) SetData(v UserInvitationResponseData)
SetData gets a reference to the given UserInvitationResponseData and assigns it to the Data field.
func (o *UserInvitationResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationResponseData Object of a user invitation returned by the API.
type UserInvitationResponseData struct {
// Attributes of a user invitation.
Attributes *UserInvitationDataAttributes `json:"attributes,omitempty"`
// ID of the user invitation.
Id *string `json:"id,omitempty"`
// User invitations type.
Type *UserInvitationsType `json:"type,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationResponseData() *UserInvitationResponseData
NewUserInvitationResponseData instantiates a new UserInvitationResponseData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationResponseDataWithDefaults() *UserInvitationResponseData
NewUserInvitationResponseDataWithDefaults instantiates a new UserInvitationResponseData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationResponseData) GetAttributes() UserInvitationDataAttributes
GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetAttributesOk() (*UserInvitationDataAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) GetType() UserInvitationsType
GetType returns the Type field value if set, zero value otherwise.
func (o *UserInvitationResponseData) GetTypeOk() (*UserInvitationsType, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationResponseData) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *UserInvitationResponseData) HasId() bool
HasId returns a boolean if a field has been set.
func (o *UserInvitationResponseData) HasType() bool
HasType returns a boolean if a field has been set.
func (o UserInvitationResponseData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationResponseData) SetAttributes(v UserInvitationDataAttributes)
SetAttributes gets a reference to the given UserInvitationDataAttributes and assigns it to the Attributes field.
func (o *UserInvitationResponseData) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (o *UserInvitationResponseData) SetType(v UserInvitationsType)
SetType gets a reference to the given UserInvitationsType and assigns it to the Type field.
func (o *UserInvitationResponseData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsRequest Object to invite users to join the organization.
type UserInvitationsRequest struct {
// List of user invitations.
Data []UserInvitationData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationsRequest(data []UserInvitationData) *UserInvitationsRequest
NewUserInvitationsRequest instantiates a new UserInvitationsRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationsRequestWithDefaults() *UserInvitationsRequest
NewUserInvitationsRequestWithDefaults instantiates a new UserInvitationsRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationsRequest) GetData() []UserInvitationData
GetData returns the Data field value.
func (o *UserInvitationsRequest) GetDataOk() (*[]UserInvitationData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserInvitationsRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationsRequest) SetData(v []UserInvitationData)
SetData sets field value.
func (o *UserInvitationsRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsResponse User invitations as returned by the API.
type UserInvitationsResponse struct {
// Array of user invitations.
Data []UserInvitationResponseData `json:"data,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserInvitationsResponse() *UserInvitationsResponse
NewUserInvitationsResponse instantiates a new UserInvitationsResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserInvitationsResponseWithDefaults() *UserInvitationsResponse
NewUserInvitationsResponseWithDefaults instantiates a new UserInvitationsResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserInvitationsResponse) GetData() []UserInvitationResponseData
GetData returns the Data field value if set, zero value otherwise.
func (o *UserInvitationsResponse) GetDataOk() (*[]UserInvitationResponseData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserInvitationsResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o UserInvitationsResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserInvitationsResponse) SetData(v []UserInvitationResponseData)
SetData gets a reference to the given []UserInvitationResponseData and assigns it to the Data field.
func (o *UserInvitationsResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserInvitationsType User invitations type.
type UserInvitationsType string
List of UserInvitationsType.
const (
USERINVITATIONSTYPE_USER_INVITATIONS UserInvitationsType = "user_invitations"
)
func NewUserInvitationsTypeFromValue(v string) (*UserInvitationsType, error)
NewUserInvitationsTypeFromValue returns a pointer to a valid UserInvitationsType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UserInvitationsType) GetAllowedValues() []UserInvitationsType
GetAllowedValues reeturns the list of possible values.
func (v UserInvitationsType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UserInvitationsType) Ptr() *UserInvitationsType
Ptr returns reference to UserInvitationsType value.
func (v *UserInvitationsType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.
UserRelationships Relationships of the user object.
type UserRelationships struct {
// Relationship to roles.
Roles *RelationshipToRoles `json:"roles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserRelationships() *UserRelationships
NewUserRelationships instantiates a new UserRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserRelationshipsWithDefaults() *UserRelationships
NewUserRelationshipsWithDefaults instantiates a new UserRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserRelationships) GetRoles() RelationshipToRoles
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *UserRelationships) GetRolesOk() (*RelationshipToRoles, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserRelationships) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o UserRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserRelationships) SetRoles(v RelationshipToRoles)
SetRoles gets a reference to the given RelationshipToRoles and assigns it to the Roles field.
func (o *UserRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserResponse Response containing information about a single user.
type UserResponse struct {
// User object returned by the API.
Data *User `json:"data,omitempty"`
// Array of objects related to the user.
Included []UserResponseIncludedItem `json:"included,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserResponse() *UserResponse
NewUserResponse instantiates a new UserResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserResponseWithDefaults() *UserResponse
NewUserResponseWithDefaults instantiates a new UserResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserResponse) GetData() User
GetData returns the Data field value if set, zero value otherwise.
func (o *UserResponse) GetDataOk() (*User, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponse) GetIncluded() []UserResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *UserResponse) GetIncludedOk() (*[]UserResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *UserResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o UserResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserResponse) SetData(v User)
SetData gets a reference to the given User and assigns it to the Data field.
func (o *UserResponse) SetIncluded(v []UserResponseIncludedItem)
SetIncluded gets a reference to the given []UserResponseIncludedItem and assigns it to the Included field.
func (o *UserResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserResponseIncludedItem - An object related to a user.
type UserResponseIncludedItem struct {
Organization *Organization
Permission *Permission
Role *Role
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject interface{}
}
func OrganizationAsUserResponseIncludedItem(v *Organization) UserResponseIncludedItem
OrganizationAsUserResponseIncludedItem is a convenience function that returns Organization wrapped in UserResponseIncludedItem.
func PermissionAsUserResponseIncludedItem(v *Permission) UserResponseIncludedItem
PermissionAsUserResponseIncludedItem is a convenience function that returns Permission wrapped in UserResponseIncludedItem.
func RoleAsUserResponseIncludedItem(v *Role) UserResponseIncludedItem
RoleAsUserResponseIncludedItem is a convenience function that returns Role wrapped in UserResponseIncludedItem.
func (obj *UserResponseIncludedItem) GetActualInstance() interface{}
GetActualInstance returns the actual instance.
func (obj UserResponseIncludedItem) MarshalJSON() ([]byte, error)
MarshalJSON turns data from the first non-nil pointers in the struct to JSON.
func (obj *UserResponseIncludedItem) UnmarshalJSON(data []byte) error
UnmarshalJSON turns data into one of the pointers in the struct.
UserResponseRelationships Relationships of the user object returned by the API.
type UserResponseRelationships struct {
// Relationship to an organization.
Org *RelationshipToOrganization `json:"org,omitempty"`
// Relationship to organizations.
OtherOrgs *RelationshipToOrganizations `json:"other_orgs,omitempty"`
// Relationship to users.
OtherUsers *RelationshipToUsers `json:"other_users,omitempty"`
// Relationship to roles.
Roles *RelationshipToRoles `json:"roles,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserResponseRelationships() *UserResponseRelationships
NewUserResponseRelationships instantiates a new UserResponseRelationships object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserResponseRelationshipsWithDefaults() *UserResponseRelationships
NewUserResponseRelationshipsWithDefaults instantiates a new UserResponseRelationships object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserResponseRelationships) GetOrg() RelationshipToOrganization
GetOrg returns the Org field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOrgOk() (*RelationshipToOrganization, bool)
GetOrgOk returns a tuple with the Org field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetOtherOrgs() RelationshipToOrganizations
GetOtherOrgs returns the OtherOrgs field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOtherOrgsOk() (*RelationshipToOrganizations, bool)
GetOtherOrgsOk returns a tuple with the OtherOrgs field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetOtherUsers() RelationshipToUsers
GetOtherUsers returns the OtherUsers field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetOtherUsersOk() (*RelationshipToUsers, bool)
GetOtherUsersOk returns a tuple with the OtherUsers field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) GetRoles() RelationshipToRoles
GetRoles returns the Roles field value if set, zero value otherwise.
func (o *UserResponseRelationships) GetRolesOk() (*RelationshipToRoles, bool)
GetRolesOk returns a tuple with the Roles field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserResponseRelationships) HasOrg() bool
HasOrg returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasOtherOrgs() bool
HasOtherOrgs returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasOtherUsers() bool
HasOtherUsers returns a boolean if a field has been set.
func (o *UserResponseRelationships) HasRoles() bool
HasRoles returns a boolean if a field has been set.
func (o UserResponseRelationships) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserResponseRelationships) SetOrg(v RelationshipToOrganization)
SetOrg gets a reference to the given RelationshipToOrganization and assigns it to the Org field.
func (o *UserResponseRelationships) SetOtherOrgs(v RelationshipToOrganizations)
SetOtherOrgs gets a reference to the given RelationshipToOrganizations and assigns it to the OtherOrgs field.
func (o *UserResponseRelationships) SetOtherUsers(v RelationshipToUsers)
SetOtherUsers gets a reference to the given RelationshipToUsers and assigns it to the OtherUsers field.
func (o *UserResponseRelationships) SetRoles(v RelationshipToRoles)
SetRoles gets a reference to the given RelationshipToRoles and assigns it to the Roles field.
func (o *UserResponseRelationships) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateAttributes Attributes of the edited user.
type UserUpdateAttributes struct {
// If the user is enabled or disabled.
Disabled *bool `json:"disabled,omitempty"`
// The email of the user.
Email *string `json:"email,omitempty"`
// The name of the user.
Name *string `json:"name,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateAttributes() *UserUpdateAttributes
NewUserUpdateAttributes instantiates a new UserUpdateAttributes object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateAttributesWithDefaults() *UserUpdateAttributes
NewUserUpdateAttributesWithDefaults instantiates a new UserUpdateAttributes object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateAttributes) GetDisabled() bool
GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetDisabledOk() (*bool, bool)
GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) GetEmail() string
GetEmail returns the Email field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetEmailOk() (*string, bool)
GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) GetName() string
GetName returns the Name field value if set, zero value otherwise.
func (o *UserUpdateAttributes) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UserUpdateAttributes) HasDisabled() bool
HasDisabled returns a boolean if a field has been set.
func (o *UserUpdateAttributes) HasEmail() bool
HasEmail returns a boolean if a field has been set.
func (o *UserUpdateAttributes) HasName() bool
HasName returns a boolean if a field has been set.
func (o UserUpdateAttributes) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateAttributes) SetDisabled(v bool)
SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *UserUpdateAttributes) SetEmail(v string)
SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *UserUpdateAttributes) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UserUpdateAttributes) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateData Object to update a user.
type UserUpdateData struct {
// Attributes of the edited user.
Attributes UserUpdateAttributes `json:"attributes"`
// ID of the user.
Id string `json:"id"`
// Users resource type.
Type UsersType `json:"type"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateData(attributes UserUpdateAttributes, id string, typeVar UsersType) *UserUpdateData
NewUserUpdateData instantiates a new UserUpdateData object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateDataWithDefaults() *UserUpdateData
NewUserUpdateDataWithDefaults instantiates a new UserUpdateData object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateData) GetAttributes() UserUpdateAttributes
GetAttributes returns the Attributes field value.
func (o *UserUpdateData) GetAttributesOk() (*UserUpdateAttributes, bool)
GetAttributesOk returns a tuple with the Attributes field value and a boolean to check if the value has been set.
func (o *UserUpdateData) GetId() string
GetId returns the Id field value.
func (o *UserUpdateData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (o *UserUpdateData) GetType() UsersType
GetType returns the Type field value.
func (o *UserUpdateData) GetTypeOk() (*UsersType, bool)
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (o UserUpdateData) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateData) SetAttributes(v UserUpdateAttributes)
SetAttributes sets field value.
func (o *UserUpdateData) SetId(v string)
SetId sets field value.
func (o *UserUpdateData) SetType(v UsersType)
SetType sets field value.
func (o *UserUpdateData) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UserUpdateRequest Update a user.
type UserUpdateRequest struct {
// Object to update a user.
Data UserUpdateData `json:"data"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUserUpdateRequest(data UserUpdateData) *UserUpdateRequest
NewUserUpdateRequest instantiates a new UserUpdateRequest object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUserUpdateRequestWithDefaults() *UserUpdateRequest
NewUserUpdateRequestWithDefaults instantiates a new UserUpdateRequest object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UserUpdateRequest) GetData() UserUpdateData
GetData returns the Data field value.
func (o *UserUpdateRequest) GetDataOk() (*UserUpdateData, bool)
GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.
func (o UserUpdateRequest) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UserUpdateRequest) SetData(v UserUpdateData)
SetData sets field value.
func (o *UserUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsersApi service type
type UsersApi datadog.Service
func NewUsersApi(client *datadog.APIClient) *UsersApi
NewUsersApi Returns NewUsersApi.
func (a *UsersApi) CreateServiceAccount(ctx _context.Context, body ServiceAccountCreateRequest) (UserResponse, *_nethttp.Response, error)
CreateServiceAccount Create a service account. Create a service account for your organization.
func (a *UsersApi) CreateUser(ctx _context.Context, body UserCreateRequest) (UserResponse, *_nethttp.Response, error)
CreateUser Create a user. Create a user for your organization.
func (a *UsersApi) DisableUser(ctx _context.Context, userId string) (*_nethttp.Response, error)
DisableUser Disable a user. Disable a user. Can only be used with an application key belonging to an administrator user.
func (a *UsersApi) GetInvitation(ctx _context.Context, userInvitationUuid string) (UserInvitationResponse, *_nethttp.Response, error)
GetInvitation Get a user invitation. Returns a single user invitation by its UUID.
func (a *UsersApi) GetUser(ctx _context.Context, userId string) (UserResponse, *_nethttp.Response, error)
GetUser Get user details. Get a user in the organization specified by the user’s `user_id`.
func (a *UsersApi) ListUserOrganizations(ctx _context.Context, userId string) (UserResponse, *_nethttp.Response, error)
ListUserOrganizations Get a user organization. Get a user organization. Returns the user information and all organizations joined by this user.
func (a *UsersApi) ListUserPermissions(ctx _context.Context, userId string) (PermissionsResponse, *_nethttp.Response, error)
ListUserPermissions Get a user permissions. Get a user permission set. Returns a list of the user’s permissions granted by the associated user's roles.
func (a *UsersApi) ListUsers(ctx _context.Context, o ...ListUsersOptionalParameters) (UsersResponse, *_nethttp.Response, error)
ListUsers List all users. Get the list of all users in the organization. This list includes all users even if they are deactivated or unverified.
func (a *UsersApi) SendInvitations(ctx _context.Context, body UserInvitationsRequest) (UserInvitationsResponse, *_nethttp.Response, error)
SendInvitations Send invitation emails. Sends emails to one or more users inviting them to join the organization.
func (a *UsersApi) UpdateUser(ctx _context.Context, userId string, body UserUpdateRequest) (UserResponse, *_nethttp.Response, error)
UpdateUser Update a user. Edit a user. Can only be used with an application key belonging to an administrator user.
UsersResponse Response containing information about multiple users.
type UsersResponse struct {
// Array of returned users.
Data []User `json:"data,omitempty"`
// Array of objects related to the users.
Included []UserResponseIncludedItem `json:"included,omitempty"`
// Object describing meta attributes of response.
Meta *ResponseMetaAttributes `json:"meta,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
AdditionalProperties map[string]interface{}
}
func NewUsersResponse() *UsersResponse
NewUsersResponse instantiates a new UsersResponse object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
func NewUsersResponseWithDefaults() *UsersResponse
NewUsersResponseWithDefaults instantiates a new UsersResponse object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
func (o *UsersResponse) GetData() []User
GetData returns the Data field value if set, zero value otherwise.
func (o *UsersResponse) GetDataOk() (*[]User, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) GetIncluded() []UserResponseIncludedItem
GetIncluded returns the Included field value if set, zero value otherwise.
func (o *UsersResponse) GetIncludedOk() (*[]UserResponseIncludedItem, bool)
GetIncludedOk returns a tuple with the Included field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) GetMeta() ResponseMetaAttributes
GetMeta returns the Meta field value if set, zero value otherwise.
func (o *UsersResponse) GetMetaOk() (*ResponseMetaAttributes, bool)
GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.
func (o *UsersResponse) HasData() bool
HasData returns a boolean if a field has been set.
func (o *UsersResponse) HasIncluded() bool
HasIncluded returns a boolean if a field has been set.
func (o *UsersResponse) HasMeta() bool
HasMeta returns a boolean if a field has been set.
func (o UsersResponse) MarshalJSON() ([]byte, error)
MarshalJSON serializes the struct using spec logic.
func (o *UsersResponse) SetData(v []User)
SetData gets a reference to the given []User and assigns it to the Data field.
func (o *UsersResponse) SetIncluded(v []UserResponseIncludedItem)
SetIncluded gets a reference to the given []UserResponseIncludedItem and assigns it to the Included field.
func (o *UsersResponse) SetMeta(v ResponseMetaAttributes)
SetMeta gets a reference to the given ResponseMetaAttributes and assigns it to the Meta field.
func (o *UsersResponse) UnmarshalJSON(bytes []byte) (err error)
UnmarshalJSON deserializes the given payload.
UsersType Users resource type.
type UsersType string
List of UsersType.
const (
USERSTYPE_USERS UsersType = "users"
)
func NewUsersTypeFromValue(v string) (*UsersType, error)
NewUsersTypeFromValue returns a pointer to a valid UsersType for the value passed as argument, or an error if the value passed is not allowed by the enum.
func (v *UsersType) GetAllowedValues() []UsersType
GetAllowedValues reeturns the list of possible values.
func (v UsersType) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise.
func (v UsersType) Ptr() *UsersType
Ptr returns reference to UsersType value.
func (v *UsersType) UnmarshalJSON(src []byte) error
UnmarshalJSON deserializes the given payload.